Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Web.UI.WebControls Namespace

Updated: November 2007

The System.Web.UI.WebControls namespace contains 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. Although Web server controls are rendered as HTML, their object model does not necessarily reflect HTML syntax.

The System.Web.UI.WebControls namespace contains classes that are rendered as HTML tags, such as the TextBox control and the ListBox control. The namespace also contains classes that are not rendered on the Web page, but support data operations, such as the SqlDataSource and ObjectDataSource classes. Other controls, such as the GridView and DetailsView controls, support data display and editing. The WebControl class serves as the base class for many of the classes in the System.Web.UI.WebControls namespace.

  ClassDescription
AccessDataSource Represents a Microsoft Access database for use with data-bound controls.
AccessDataSourceView Supports the AccessDataSource control and provides an interface for data-bound controls to perform data retrieval using Structured Query Language (SQL) against a Microsoft Access database.
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.
AssociatedControlConverter Provides a type converter that retrieves a list of WebControl controls in the current container.
AuthenticateEventArgs Provides data for the Authenticate event.
AutoGeneratedField Represents an automatically generated field in a data-bound control. This class cannot be inherited.
AutoGeneratedFieldProperties Represents the properties of an AutoGeneratedField object. This class cannot be inherited.
BaseCompareValidator Serves as the abstract base class for validation controls that perform typed comparisons.
BaseDataBoundControl Serves as the base class for controls that bind to data using an ASP.NET data source control.
BaseDataList Serves as the abstract base class for data listing controls, such as 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.
BoundField Represents a field that is displayed as text in a data-bound control.
BulletedList Creates a control that generates a list of items in a bulleted format.
BulletedListEventArgs Provides data for the Click event of a BulletedList control.
Button Displays a push button control on the Web page.
ButtonColumn A column type for the DataGrid control that contains a user-defined button.
ButtonField Represents a field that is displayed as a button in a data-bound control.
ButtonFieldBase Serves as the abstract base class for button fields, such as the ButtonField or CommandField class. The ButtonFieldBase class provides the methods and properties that are common to all button fields.
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.
ChangePassword Provides a user interface that enable users to change their Web site password.
CheckBox Displays a check box that allows the user to select a true or false condition.
CheckBoxField Represents a Boolean field that is displayed as a check box in a data-bound control.
CheckBoxList Creates a multi selection check box group that can be dynamically created by binding the control to a data source.
CircleHotSpot Defines a circular hot spot region in an ImageMap control. This class cannot be inherited.
CommandEventArgs Provides data for the Command event.
CommandField Represents a special field that displays command buttons to perform selecting, editing, inserting, or deleting operations in a data-bound control.
CompareValidator Compares the value entered by the user in an input control with the value entered in another input control, or with a constant value.
CompleteWizardStep Defines the template of the final step for creating a user account with the CreateUserWizard control.
CompositeControl Implements the basic functionality required by Web controls that contain child controls.
CompositeDataBoundControl Represents the base class for a tabular data-bound control that is composed of other server controls.
Content Holds text, markup, and server controls to render to a ContentPlaceHolder control in a master page.
ContentPlaceHolder Defines a region for content in an ASP.NET master page.
ControlIDConverter Provides a type converter that retrieves a list of control IDs in the current container.
ControlParameter Binds the value of a property of a Control to a parameter object.
ControlPropertyNameConverter Provides a type converter that retrieves a list of property names for the current control.
CookieParameter Binds the value of a client-side HTTP cookie to a parameter object. The parameter can be used in a parameterized query or command to select, filter, or update data.
CreateUserErrorEventArgs Provides data for the CreateUserError event.
CreateUserWizard Provides a user interface for creating new Web site user accounts.
CreateUserWizardStep Contains basic functionality for creating a user in a step that can be templated. This class cannot be inherited.
CustomValidator Performs user-defined validation on an input control.
DataBoundControl Serves as the base class for all ASP.NET version 2.0 data-bound controls that display their data in list or tabular form.
DataControlCommands The DataControlCommands class contains public fields that all ASP.NET data-bound controls use, to promote a consistent user interface (UI). This class cannot be inherited.
DataControlField Serves as the base class for all data control field types, which represent a column of data in tabular data-bound controls such as DetailsView and GridView.
DataControlFieldCell Represents a cell in the rendered table of a tabular ASP.NET data-bound control, such as DetailsView or GridView.
DataControlFieldCollection Represents a collection of DataControlField objects that are used by data-bound controls such as GridView and DetailsView.
DataControlFieldHeaderCell In accessibility scenarios, represents a header cell in the rendered table of a tabular ASP.NET data-bound control, such as GridView.
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.
DataKey Represents the primary key field or fields of a record in a data-bound control.
DataKeyArray Represents a collection of DataKey objects. 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.
DataPager Provides paging functionality for data-bound controls that implement the IPageableItemContainer interface, such as the ListView control.
DataPagerCommandEventArgs Provides data for the PagerCommand event of the TemplatePagerField class.
DataPagerField Serves as the base class for data pager field types, which represent a navigation control for the DataPager control.
DataPagerFieldCollection Represents a collection of DataPagerField objects that are used by the DataPager control.
DataPagerFieldCommandEventArgs Provides data for the Command event.
DataPagerFieldItem Represents a pager field item in a DataPager control.
DayRenderEventArgs Provides data for the DayRender event of the Calendar control. This class cannot be inherited.
DetailsView Displays the values of a single record from a data source in a table, where each data row represents a field of the record. The DetailsView control allows you to edit, delete, and insert records.
DetailsViewCommandEventArgs Provides data for the ItemCommand event.
DetailsViewDeletedEventArgs Provides data for the ItemDeleted event.
DetailsViewDeleteEventArgs Provides data for the ItemDeleting event.
DetailsViewInsertedEventArgs Provides data for the ItemInserted event.
DetailsViewInsertEventArgs Provides data for the ItemInserting event.
DetailsViewModeEventArgs Provides data for the ModeChanging event.
DetailsViewPageEventArgs Provides data for the PageIndexChanging event.
DetailsViewPagerRow Represents the pager row in a DetailsView control.
DetailsViewRow Represents a row within a DetailsView control.
DetailsViewRowCollection Represents a collection of DetailsViewRow objects in a DetailsView control.
DetailsViewUpdatedEventArgs Provides data for the ItemUpdated event.
DetailsViewUpdateEventArgs Provides data for the ItemUpdating event.
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 buttons for editing data items in each row.
EmbeddedMailObject Represents an item to embed in an e-mail message constructed using the MailDefinition class.
EmbeddedMailObjectsCollection Represents an ordered set of EmbeddedMailObject objects.
EntityDataSource Represents an Entity Data Model (EDM) to data-bound controls in an ASP.NET application.
EntityDataSourceChangedEventArgs Provides data for the Inserted, Updated, and Deleted events.
EntityDataSourceChangingEventArgs Provides data for the Inserting, Updating, and