Drop Down List In ASP.NET Web Forms | Web Forms Tutorial | ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="DropDownList.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server" Width="150px">
<%--<asp:ListItem Value="1" Text="Ahmedabad"></asp:ListItem>
<asp:ListItem Value="2" Text="Mumbai"></asp:ListItem>
<asp:ListItem Value="3" Text="Rajkot"></asp:ListItem>
<asp:ListItem Value="4" Text="Surat"></asp:ListItem>--%>
</asp:DropDownList>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="SUBMIT"/>
</div>
</form>
</body>
</html>
Comments
Post a Comment