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.

Table 4.2. HTML Controls and Their Tags
Control HTML Tag
HtmlAnchor <a>
HtmlButton <button>
HtmlSelect <select>
HtmlTextArea <textarea>
HtmlInputButton ...

Get Inside ASP.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.