ASP.Net Standard Controls

TextBox Control

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

Result


Button Control

<asp:Button ID="Button1" runat="server" Text="Button" />

Result


DropDownList Control

<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem> Select your Country</asp:ListItem>
<asp:ListItem>India</asp:ListItem>
<asp:ListItem>Iran</asp:ListItem>
<asp:ListItem>Turkey</asp:ListItem>
<asp:ListItem>Russia</asp:ListItem>
<asp:ListItem>United States</asp:ListItem>
<asp:ListItem>United Kingdom</asp:ListItem>
<asp:ListItem>United Arab Emirates</asp:ListItem>
<asp:ListItem>Pakistan</asp:ListItem>
</asp:DropDownList> 

Result


Checkbox Control

 <asp:checkbox ID="Checkbox1" runat="server"></asp:checkbox>

Result


CheckBoxList Control

 <asp:checkbox ID="Checkbox1" runat="server"></asp:checkbox>

Result






RadioButton Control

<asp:RadioButton ID="RadioButton1" Text=" I hereby confirm that the information provided by me best and true." runat="server" />

Result


RadioButtonList Control

<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem> Male </asp:ListItem>
<asp:ListItem> Female </asp:ListItem>
</asp:RadioButtonList>

Result



FileUpload Control

<asp:FileUpload ID="FileUpload1" runat="server" />

Result


ListBox Control

<asp:ListBox ID="ListBox1" runat="server">
<asp:ListItem Text="Red" Value="red"></asp:ListItem>
<asp:ListItem Text="Blue" Value="blue"></asp:ListItem>
<asp:ListItem Text="Green" Value="green"></asp:ListItem>
</asp:ListBox>

Result


HyperLink Control

<asp:HyperLink ID="HyperLink1"  NavigateUrl="~/Contacts.aspx" runat="server">Contact Us</asp:HyperLink>

Result

Contact Us

Label Control

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

Result

Label

Calendar Control

<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>

Result

<June 2020>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Image Control

<asp:Image ID="Image1" runat="server" ImageUrl="~/images/logo.png" />

Result


ImageButton Control

<asp:ImageButton ID="ImageButton1" ImageUrl="~/images/image-button.jpg" runat="server" />

Result


Table Control

<asp:Table ID="Table1" runat="server" Width="300px" BorderWidth="1" GridLines="Both">

<asp:TableHeaderRow> 
 <asp:TableHeaderCell>Serial</asp:TableHeaderCell>
<asp:TableHeaderCell>Name</asp:TableHeaderCell>
<asp:TableHeaderCell>Value</asp:TableHeaderCell>
</asp:TableHeaderRow>

<asp:TableRow> 
 <asp:TableCell>1</asp:TableCell>
<asp:TableCell>Black</asp:TableCell>
<asp:TableCell>#000000</asp:TableCell>
</asp:TableRow>

<asp:TableRow> 
<asp:TableCell>2</asp:TableCell>
<asp:TableCell>White</asp:TableCell>
<asp:TableCell>#ffffff</asp:TableCell>
</asp:TableRow>

<asp:TableRow> 
<asp:TableCell>3</asp:TableCell>
<asp:TableCell>Gray</asp:TableCell>
<asp:TableCell>#cccccc</asp:TableCell>
</asp:TableRow>

<asp:TableFooterRow>
<asp:TableCell ColumnSpan="3" HorizontalAlign="Right" Font-Italic="true">  Total no. of colors 5</asp:TableCell>
</asp:TableFooterRow>

</asp:Table>

Result

SerialNameValue
1Black#000000
2White#ffffff
3Gray#cccccc
Total no. of colors 5