Server Controls
Server controls are specifically designed to work with Web Forms. There are two types of server controls: HTML controls and Web controls.We review them in the following sections.
HTML Controls
The first set of server controls is HTML controls. Each HTML control has a one-to-one mapping with an HTML tag and, therefore, represents an HTML control you’ve probably been using.
These controls reside in the System.Web.UI.HtmlControls namespace and derive either directly or indirectly from the HtmlControl base class. The controls and their corresponding HTML tags are given in Table 4.2.
Control | HTML Tag |
---|---|
HtmlAnchor | <a> |
HtmlButton | <button> |
HtmlSelect | <select> |
HtmlTextArea | <textarea> |
HtmlInputButton ... |
Get Inside ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.