Tuesday 24 January 2012

Web Server Controls


Like HTML server controls, Web server controls are also created on the server and they require a runat="server" attribute to work. However, Web server controls do not necessarily map to any existing HTML elements and they may represent more complex elements.
The syntax for creating a Web server control is:
<asp:control_name id="some_id" runat="server" />

Web Server ControlDescription
AdRotatorDisplays a sequence of images
ButtonDisplays a push button
CalendarDisplays a calendar
CalendarDayA day in a calendar control
CheckBoxDisplays a check box
CheckBoxListCreates a multi-selection check box group
DataGridDisplays fields of a data source in a grid
DataListDisplays items from a data source by using templates
DropDownListCreates a drop-down list
HyperLinkCreates a hyperlink
ImageDisplays an image
ImageButtonDisplays a clickable image
LabelDisplays static content which is programmable (lets you apply styles to its content)
LinkButtonCreates a hyperlink button
ListBoxCreates a single- or multi-selection drop-down list
ListItemCreates an item in a list
LiteralDisplays static content which is programmable(does not let you apply styles to its content)
PanelProvides a container for other controls
PlaceHolderReserves space for controls added by code
RadioButtonCreates a radio button
RadioButtonListCreates a group of radio buttons
BulletedListCreates a list in bullet format
RepeaterDisplays a repeated list of items bound to the control
StyleSets the style of controls
TableCreates a table
TableCellCreates a table cell
TableRowCreates a table row
TextBoxCreates a text box
XmlDisplays an XML file or the results of an XSL transform

No comments: