Web Forms Controls
ASP.NET Web Forms - Web Server Controls
Web server controls are special ASP.NET tags that the server understands.
Web Server Control
Just like HTML server controls, Web server controls are also created on the server, and they also require the runat="server" attribute to take effect. However, Web server controls do not necessarily map any existing HTML elements; they can represent more complex elements.
The syntax for creating a Web server control is:
<asp:control_name id="some_id" runat="server" />
Web Server Control | Description |
---|---|
AdRotator | Display a graphic sequence |
Button | Show push button |
Calendar | Show calendar |
CalendarDay | Day in calendar control |
CheckBox | Display check box |
CheckBoxList | Create a multi-select check box group |
DataGrid | Display the fields of the data source in the grid |
DataList | Display items from a data source by using a template |
DropDownList | Create a drop-down list |
HyperLink | Create Hyperlink |
Image | Display Image |
ImageButton | Display clickable image |
Label | Display programmable static content (allows you to apply styles to its content) |
LinkButton | Create a hyperlink button |
ListBox | Create a single or multi-select drop-down list |
ListItem | Creates an item in a list |
Literal | Displays programmable static content (does not enable you to apply styles to its content ) |
Panel | Provides a container for other controls |
PlaceHolder | is a control added by code Reserve space |
RadioButton | Create radio button |
RadioButtonList | Create radio button group |
BulletedList | Create a list in bulleted format |
Repeater | Display the items bound to the control Repeating list of items |
Style | Set the style of the control |
Table | Create a table |
TableCell | Create table cell |
TableRow | Create table row |
TextBox | Create a text box |
Xml | Display the result of XML file or XSL conversion |