Professional Documents
Culture Documents
Name:Swagatipachare Date:10/4/24 Default - Aspx
Name:Swagatipachare Date:10/4/24 Default - Aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Web Controls </title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 253px; width: 939px">
<asp:Label ID="lblMessage" runat="server" Text="Select an item and enter some text:"></asp:Label>
<br />
<asp:DropDownList ID="ddlItems" runat="server">
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>Age</asp:ListItem>
<asp:ListItem>Location</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:TextBox ID="txtInput" runat="server" Width="200px"></asp:TextBox>
<br />
<br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
<br />
<br />
<asp:Label ID="lblOutput" runat="server" Text=""></asp:Label>
</div>
</form>
</body>
</html>
Default.aspx.cs
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
}
}
Output: