ASP.NET Tutoria...login
ASP.NET Tutorial
author:php.cn  update time:2022-04-11 14:18:18

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 ControlDescription
AdRotatorDisplay a graphic sequence
ButtonShow push button
CalendarShow calendar
CalendarDayDay in calendar control
CheckBoxDisplay check box
CheckBoxListCreate a multi-select check box group
DataGridDisplay the fields of the data source in the grid
DataListDisplay items from a data source by using a template
DropDownListCreate a drop-down list
HyperLinkCreate Hyperlink
ImageDisplay Image
ImageButtonDisplay clickable image
LabelDisplay programmable static content (allows you to apply styles to its content)
LinkButtonCreate a hyperlink button
ListBoxCreate a single or multi-select drop-down list
ListItemCreates an item in a list
LiteralDisplays 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
RadioButtonCreate radio button
RadioButtonListCreate radio button group
BulletedListCreate a list in bulleted format
RepeaterDisplay the items bound to the control Repeating list of items
StyleSet the style of the control
TableCreate a table
TableCellCreate table cell
TableRowCreate table row
TextBoxCreate a text box
XmlDisplay the result of XML file or XSL conversion

php.cn