Export (0) Print
Expand All
Expand Minimize
4 out of 6 rated this helpful - Rate this topic

System.Web.UI.WebControls Namespace

The System.Web.UI.WebControls namespace is a collection of classes that allow you to create Web server controls on a Web page. Web server controls run on the server and include form controls such as buttons and text boxes. They also include special purpose controls such as a calendar. Because Web server controls run on the server, you can programmatically control these elements. Web server controls are more abstract than HTML server controls. Their object model does not necessarily reflect HTML syntax.

Namespace hierarchy

Classes

Class Description
AdCreatedEventArgs Provides data for the AdCreated event of the AdRotator control. This class cannot be inherited.
AdRotator Displays an advertisement banner on a Web page.
BaseCompareValidator Serves as the abstract base class for validation controls that perform typed comparisons.
BaseDataList Serves as the abstract base class for data listing controls, such as the DataList and DataGrid. This class provides the methods and properties common to all data listing controls.
BaseValidator Serves as the abstract base class for validation controls.
BoundColumn A column type for the DataGrid control that is bound to a field in a data source.
Button Displays a push button control on the Web page.
ButtonColumn A column type for the DataGrid control that contains a user-defined command button, such as Add or Remove, that corresponds with each row in the column.
Calendar Displays a single month calendar that allows the user to select dates and move to the next or previous month.
CalendarDay Represents a date in the Calendar control.
CheckBox Displays a check box that allows the user to select a true or false condition.
CheckBoxList Creates a multi selection check box group that can be dynamically created by binding the control to a data source.
CommandEventArgs Provides data for the Command event.
CompareValidator Compares the value entered by the user into an input control with the value entered into another input control or a constant value.
CustomValidator Performs user-defined validation on an input control.
DataGrid A data bound list control that displays the items from data source in a table. The DataGrid control allows you to select, sort, and edit these items.
DataGridColumn Serves as the base class for the different column types of the DataGrid control.
DataGridColumnCollection A collection of DataGridColumn derived column objects that represent the columns in a DataGrid control. This class cannot be inherited.
DataGridCommandEventArgs Provides data for the CancelCommand, DeleteCommand, EditCommand, ItemCommand, and UpdateCommand events of the DataGrid control. This class cannot be inherited.
DataGridItem Represents an item (row) in a DataGrid control.
DataGridItemCollection Represents a collection of DataGridItem objects in a DataGrid control.
DataGridItemEventArgs Provides data for the ItemCreated and ItemDataBound events of the DataGrid control. This class cannot be inherited.
DataGridPageChangedEventArgs Provides data for the PageIndexChanged event of the DataGrid control. This class cannot be inherited.
DataGridPagerStyle Specifies the style for the pager of the DataGrid control. This class cannot be inherited.
DataGridSortCommandEventArgs Provides data for the SortCommand event of the DataGrid control. This class cannot be inherited.
DataKeyCollection Represents a collection that contains the key field of each record in a data source. This class cannot be inherited.
DataList A data bound list control that displays items using templates.
DataListCommandEventArgs Provides data for the CancelCommand, DeleteCommand, EditCommand, ItemCommand, and UpdateCommand events of the DataList control. This class cannot be inherited.
DataListItem Represents an item in a DataList control.
DataListItemCollection Represents the collection of DataListItem objects in the DataList control. This class cannot be inherited.
DataListItemEventArgs Provides data for the ItemCreated and ItemDataBound events of a DataList control. This class cannot be inherited.
DayRenderEventArgs Provides data for the DayRender event of the Calendar control. This class cannot be inherited.
DropDownList Represents a control that allows the user to select a single item from a drop-down list.
EditCommandColumn A special column type for the DataGrid control that contains the Edit command buttons for editing data items in each row.
FontInfo Encapsulates the font properties of text. This class cannot be inherited.
FontNamesConverter Converts a string containing a list of font names to an array of strings containing the individual names. It also performs the reverse function.
FontUnitConverter Converts a FontUnit to an object with another data type. It also converts an object with another data type to a FontUnit.
HyperLink A control that displays a link to another Web page.
HyperLinkColumn A column type for the DataGrid control that contains a hyperlink for each item in the column.
HyperLinkControlBuilder Interacts with the parser to build a HyperLink control.
Image Displays an image on a Web page.
ImageButton A control that displays an image and responds to mouse clicks on the image.
Label Represents a label control, which displays text on a Web page.
LabelControlBuilder Interacts with the parser to build a Label control.
LinkButton Displays a hyperlink style button control on a Web page.
LinkButtonControlBuilder Interacts with the parser to build a LinkButton control.
ListBox Represents a list box control that allows single or multiple item selection.
ListControl Serves as the abstract base class that defines the properties, methods, and events common for all list-type controls.
ListItem Represents a data item in a data-bound list control. This class cannot be inherited.
ListItemCollection A collection of ListItem objects in a list control. This class cannot be inherited.
ListItemControlBuilder Interacts with the parser to build a ListItem control.
Literal Reserves a location on the Web page to display static text.
LiteralControlBuilder Interacts with the parser to build a Literal control.
MonthChangedEventArgs Provides data for the VisibleMonthChanged event of a Calendar. This class cannot be inherited.
PagedDataSource Encapsulates the properties of the DataGrid control that allow it to perform paging. This class cannot be inherited.
Panel Represents a control that acts as a container for other controls.
PlaceHolder A container to store dynamically added server controls on the Web page.
PlaceHolderControlBuilder Interacts with the parser to build a PlaceHolder control.
RadioButton Represents a radio button control.
RadioButtonList Represents a list control that encapsulates a group of radio button controls.
RangeValidator Checks whether the value of an input control is within a specified range of values.
RegularExpressionValidator Validates whether the value of an associated input control matches the pattern specified by a regular expression.
Repeater A data-bound list control that allows custom layout by repeating a specified template for each item displayed in the list.
RepeaterCommandEventArgs Provides data for the ItemCommand event of a Repeater. This class cannot be inherited.
RepeaterItem Represents an item in the Repeater control.
RepeaterItemCollection Represents a collection of RepeaterItem objects in the Repeater control. This class cannot be inherited.
RepeaterItemEventArgs Provides data for the ItemCreated and ItemDataBound events of a Repeater.
RepeatInfo Encapsulates the information used to render a list control that repeats a list of items. This class cannot be inherited.
RequiredFieldValidator Makes the associated input control a required field.
SelectedDatesCollection Encapsulates a collection of System.DateTime objects that represent the selected dates in a Calendar control. This class cannot be inherited.
ServerValidateEventArgs Provides data for the ServerValidate event of the CustomValidator control. This class cannot be inherited.
Style Represents the style of a Web server control.
Table Displays a table on a Web page.
TableCell Represents a cell in a Table control.
TableCellCollection Encapsulates a collection of TableHeaderCell and TableCell objects that make up a row in a Table control. This class cannot be inherited.
TableCellControlBuilder Interacts with the parser to build a TableCell control.
TableHeaderCell Represents a heading cell within a Table control.
TableItemStyle Represents the style properties for an element of a control that renders as a TableRow or TableCell.
TableRow Represents a row in a Table control.
TableRowCollection Encapsulates a collection of TableRow objects that represent a single row in a Table control. This class cannot be inherited.
TableStyle Represents the style for a table control. This class is primarily used by control developers.
TargetConverter Converts a value representing the location (target) to display the content resulting from a Web navigation to a string. It also converts a string to a target value.
TemplateColumn Represents a column type for the DataGrid control that allows you to customize the layout of controls in the column.
TextBox Displays a text box control for user input.
TextBoxControlBuilder Interacts with the parser to build a TextBox control.
UnitConverter Converts a Unit to an object of another data type. It also converts an object of another data type to a Unit.
ValidatedControlConverter Converts a control on the Web Forms page that can be validated with a validation control to a string.
ValidationSummary Displays a summary of all validation errors inline on a Web page, in a message box, or both.
WebColorConverter Converts a predefine color name or an RGB color value to and from a System.Drawing.Color.
WebControl Serves as the base class that defines the methods, properties and events common to all controls in the System.Web.UI.WebControls namespace.
Xml Displays an XML document without formatting or using Extensible Stylesheet Language Transformations (XSLT).

Interfaces

Interface Description
IRepeatInfoUser Defines the properties and methods that must be implemented by any list control that repeats a list of items.

Structures

Structure Description
FontUnit Represents the size of a font.
Unit Represents a length measurement.

Delegates

Delegate Description
AdCreatedEventHandler Represents the method that will handle the AdCreated event of an AdRotator control.
CommandEventHandler Represents the method that will handle the Command event.
DataGridCommandEventHandler Represents the method that will handle the CancelCommand, DeleteCommand, EditCommand, ItemCommand, and UpdateCommand events of a DataGrid.
DataGridItemEventHandler Represents the method that will handle the ItemCreated and ItemDataBound events of a DataGrid.
DataGridPageChangedEventHandler Represents the method that will handle the PageIndexChanged event of the DataGrid control.
DataGridSortCommandEventHandler Represents the method that will handle the SortCommand event of the DataGrid control.
DataListCommandEventHandler Represents the method that will handle the CancelCommand, DeleteCommand, EditCommand, ItemCommand, and UpdateCommand events of a DataList control.
DataListItemEventHandler Represents the method that will handle the ItemCreated and ItemDataBound events of the DataList control.
DayRenderEventHandler Represents the method that will handle the DayRender event of the Calendar control.
MonthChangedEventHandler Represents the method that handles the VisibleMonthChanged event of a Calendar.
RepeaterCommandEventHandler Represents the method that will handle the ItemCommand event of a Repeater.
RepeaterItemEventHandler Represents the method that will handle the ItemCreated and ItemDataBound events of a Repeater.
ServerValidateEventHandler Represents the method that will handle the ServerValidate event of a CustomValidator control.

Enumerations

Enumeration Description
BorderStyle Specifies the border style of a control.
ButtonColumnType Specifies the button type for the ButtonColumn object.
CalendarSelectionMode Specifies the date selection mode of the Calendar control.
DayNameFormat Specifies the display format for the days of the week on a Calendar control.
FirstDayOfWeek Specifies the day to display as the first day of the week on the Calendar control.
FontSize Specifies the font sizes defined by HTML 4.0.
GridLines Specifies the grid line styles for controls displaying items in a table structure.
HorizontalAlign Specifies the horizonal alignment of items within a container.
ImageAlign Specifies the alignment of an image in relation to the text of a Web page.
ListItemType Specifies the type of an item in a list control.
ListSelectionMode Specifies the selection mode of the ListBox control.
NextPrevFormat Represents the display format for the previous and next month navigation controls within the Calendar.
PagerMode Represents the mode of the pager for accessing various pages within the DataGrid control.
PagerPosition Specifies the position of the pager for accessing various pages within the DataGrid control.
RepeatDirection Specifies the direction in which items of a list control are displayed.
RepeatLayout Specifies the layout of items in a list control.
TextAlign Specifies whether the text associated with a check box or radio button control appears to the left or to the right of the control.
TextBoxMode Specifies the behavior mode of the text box.
TitleFormat Specifies the title format for the displayed month in the Calendar control.
UnitType Specifies the unit of measurement.
ValidationCompareOperator Specifies the validation comparison operators used by the CompareValidator control.
ValidationDataType Specifies the validation data types used by the CompareValidator and RangeValidator controls.
ValidationSummaryDisplayMode Specifies the validation summary display mode used by the ValidationSummary control.
ValidatorDisplay Specifies the display behavior of error messages in validation controls.
VerticalAlign Specifies the vertical alignment of an object or text in a control.

See Also

.NET Framework Class Library

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.