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
| Control | What it does | Where we cover it |
|---|---|---|
GridView | Tabular 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 |
Repeater | Lightweight templated list with no markup of its own: you write every tag. | Binding a Repeater · paging a Repeater |
ListView and DataPager | Templated list with editing and an external pager control. | Paging with a ListView and a DataPager |
SqlDataSource | Declarative 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
| Control | What it does | Where we cover it |
|---|---|---|
DropDownList | Single 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 |
RadioButtonList | Single choice with every option visible. | Validating a RadioButtonList · reading the value in the browser |
CheckBoxList | Several choices among a list. | Validating a CheckBoxList (no built-in validator supports it) |
Input and buttons
| Control | What it does | Where we cover it |
|---|---|---|
TextBox | Single-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, ImageButton | Postback triggers; OnClientClick runs script first. | Confirm before submitting · redirecting on click · preventing double submits |
FileUpload | Sends a file with the postback. | Previewing an image before upload · checking the extension · saving and downloading again |
Validation controls
| Control | What it does | Where we cover it |
|---|---|---|
RequiredFieldValidator | Rejects an empty value, or a value equal to InitialValue (the "Please select" trick). | Which validator for which control · DropDownList example |
CustomValidator | Your 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 |
Navigation and page state
| Control or feature | What it does | Where we cover it |
|---|---|---|
Menu | Static or dynamic menu bound to a site map or items. | Using the Menu control |
SiteMapPath | Breadcrumb trail built from Web.sitemap. | Breadcrumbs with SiteMapPath |
ViewState and Session | Where values survive between postbacks and between pages. | Session state vs ViewState · "Unable to serialize the session state" |
PostBackUrl and PreviousPage | Cross-page posting from one form to another page. | Cross-page posting |
| Query string | Values carried in the URL. | Passing several parameters · encoding ampersands |
Script from the server
| API | What it does | Where we cover it |
|---|---|---|
ClientScriptManager / ScriptManager | Registers 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 ClientIDMode | The 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.