ASP.NET Web Forms Server Controls

ASP.NET provides web forms controls that are used to create HTML components. These controls are categories as server and client based. The following table contains the server controls for the web forms.

Control NameApplicable EventsDescription
LabelNoneIt is used to display text on the HTML page.
TextBoxTextChangedIt is used to create a text input in the form.
ButtonClick, CommandIt is used to create a button.
LinkButtonClick, CommandIt is used to create a button that looks similar to the hyperlink.
ImageButtonClickIt is used to create an imagesButton. Here, an image works as a Button.
HyperlinkNoneIt is used to create a hyperlink control that responds to a click event.
DropDownListSelectedIndexChangedIt is used to create a dropdown list control.
ListBoxSelectedIndexCnhagedIt is used to create a ListBox control like the HTML control.
DataGridCancelCommand, EditCommand, DeleteCommand, ItemCommand, SelectedIndexChanged, PageIndexChanged, SortCommand, UpdateCommand, ItemCreated, ItemDataBoundIt used to create a frid that is used to show data. We can also perform paging, sorting, and formatting very easily with this control.
DataListCancelCommand, EditCommand, DeleteCommand, ItemCommand, SelectedIndexChanged, UpdateCommand, ItemCreated, ItemDataBoundIt is used to create datalist that is non-tabular and used to show data.
CheckBoxCheckChangedIt is used to create checkbox.
CheckBoxListSelectedIndexChangedIt is used to create a group of check boxes that all work together.
RadioButtonCheckChangedIt is used to create radio button.
RadioButtonListSelectedIndexChangedIt is used to create a group of radio button controls that all work together.
ImageNoneIt is used to show image within the page.
PanelNoneIt is used to create a panel that works as a container.
PlaceHolderNoneIt is used to set placeholder for the control.
CalendarSelectionChanged, VisibleMonthChanged, DayRenderIt is used to create a calendar. We can set the default date, move forward and backward etc.
AdRotatorAdCreatedIt allows us to specify a list of ads to display. Each time the user re-displays the page.
TableNoneIt is used to create table.
XMLNoneIt is used to display XML documents within the HTML.
LiteralNoneIt is like a label in that it displays a literal, but allows us to create new literals at runtime and place them into this control.

We will explain each control with example in our next chapter.


Next TopicASP.NET Label