Web Forms controls index: every control we cover, with the tutorial to read

Web Forms has dozens of server controls, and our tutorials are organised by task rather than by control. This index works the other way round: find the control you are stuck with, then jump straight to the section that explains it. Each entry says what the control is for in one line, then lists the pages where it appears with a working example.

The descriptions follow the official reference for the System.Web.UI.WebControls namespace in .NET Framework 4.8.1, the last version of the framework that runs Web Forms. If a control is missing here, we have not written about it yet: the full list of tutorials is the place to check for related topics.

Data controls

ControlWhat it doesWhere we cover it
GridViewTabular display with built-in paging, sorting, selection and row editing.Choosing between GridView, Repeater and ListView · reading the selected row · check-all box · inline insert, edit and delete · binding with ExecuteReader · CRUD with a form · export to Word, Excel, text and PDF
RepeaterLightweight templated list with no markup of its own: you write every tag.Binding a Repeater · paging a Repeater
ListView and DataPagerTemplated list with editing and an external pager control.Paging with a ListView and a DataPager
SqlDataSourceDeclarative data source; convenient for prototypes, harder to test than code-behind with ADO.NET.When a data source control is enough · ADO.NET in code-behind instead

List controls

ControlWhat it doesWhere we cover it
DropDownListSingle choice in a closed list; the most common list control in business forms.Binding to SQL Server · tooltips on items · validating a choice · cascading country, state and city lists · setting the selection with JavaScript or jQuery
RadioButtonListSingle choice with every option visible.Validating a RadioButtonList · reading the value in the browser
CheckBoxListSeveral choices among a list.Validating a CheckBoxList (no built-in validator supports it)

Input and buttons

ControlWhat it doesWhere we cover it
TextBoxSingle-line, multi-line or password input.Getting and setting the value with JavaScript · with jQuery · enabling and disabling it · styling the focused input
Button, LinkButton, ImageButtonPostback triggers; OnClientClick runs script first.Confirm before submitting · redirecting on click · preventing double submits
FileUploadSends a file with the postback.Previewing an image before upload · checking the extension · saving and downloading again

Validation controls

ControlWhat it doesWhere we cover it
RequiredFieldValidatorRejects an empty value, or a value equal to InitialValue (the "Please select" trick).Which validator for which control · DropDownList example
CustomValidatorYour own rule, in the browser and on the server.CheckBoxList example
Request validation (page setting)Blocks input that looks like markup; the source of the "potentially dangerous Request.Form value" error.Request validation in web.config
Control or featureWhat it doesWhere we cover it
MenuStatic or dynamic menu bound to a site map or items.Using the Menu control
SiteMapPathBreadcrumb trail built from Web.sitemap.Breadcrumbs with SiteMapPath
ViewState and SessionWhere values survive between postbacks and between pages.Session state vs ViewState · "Unable to serialize the session state"
PostBackUrl and PreviousPageCross-page posting from one form to another page.Cross-page posting
Query stringValues carried in the URL.Passing several parameters · encoding ampersands

Script from the server

APIWhat it doesWhere we cover it
ClientScriptManager / ScriptManagerRegisters JavaScript that runs after the page or an UpdatePanel refresh.Alerts from code-behind · calling any function · automatic refresh
Page methods ([WebMethod])Static server methods called from jQuery without a full postback.Calling server code from jQuery
ClientID and ClientIDModeThe id a control gets in the browser, needed by every script.Reading a TextBox from script

Official reference

Microsoft keeps the control reference on Microsoft Learn: the System.Web.UI.WebControls namespace lists every class with its properties and events, and the ASP.NET Web Forms documentation groups the older tutorials by topic. Web Forms is not part of modern .NET; if you are planning a move, our French guide migrer Web Forms vers ASP.NET Core maps each control to its Razor equivalent, and .NET support dates shows how long .NET Framework 4.8.1 remains supported.