Web server controls
- Previous Page WebForms HTML
- Next Page WebForms Validation
Web server controls are special ASP.NET tags that can be understood by the server.
Web server controls
Similar to HTML server controls, Web server controls are created on the server and require the runat="server" attribute to function. However, Web server controls do not map to 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 controls | Description |
---|---|
AdRotator | Display a sequence of graphics |
Button | Display a button |
Calendar | Display a calendar |
CalendarDay | A day in the calendar control |
CheckBox | Display a checkbox |
CheckBoxList | Create a group of checkboxes with multiple selections |
DataGrid | Display fields from a data source in a grid |
DataList | Display items from a data source using a template |
DropDownList | Create a dropdown list |
HyperLink | Create a hyperlink |
Image | Display an image |
ImageButton | Display a clickable image |
Label | Display programmable static content (allows you to apply styles to its content) |
LinkButton | Create a hyperlink button |
ListBox | Create a dropdown list with radio or checkbox options |
ListItem | Create an item in a list |
Literal | Display programmable static content (cannot apply styles to its content) |
Panel | Provide a container for other controls |
PlaceHolder | Reserved space added by code |
RadioButton | Create a radio button |
RadioButtonList | Create a radio button group |
BulletedList | Create a bulleted list |
Repeater | Display repeated list items bound to the control |
Style | Set the style of the control |
Table | Create a table |
TableCell | Create a table cell |
TableRow | Create a table row |
TextBox | Create a textbox |
Xml | Display the result of an XML file or XSL transformation |
- Previous Page WebForms HTML
- Next Page WebForms Validation