NET applications. We recommend that developers strive to fully migrate toward the web
control classes in application development to gain the benefits from the level of abstraction
web controls provide as well as the rich programming model available. This is especially true if
custom control development is planned or desired.
CHAPTER 1 ?– SERVER CONTROL BASICS 41
Summary
This chapter was devoted to the topic of server controls. Server controls are objects, and as such,
they provide the time-honored constructs of properties, methods, and events. The HTML
content rendered to the browser client is generated in its entirety by a tree of server controls
representing each item on the page.
Controls in ASP.NET are separated into three hierarchies: System.Web.UI, System.Web.
UI.HtmlControls, and System.Web.UI.WebControls. System.Web.UI contains the Page class,
which represents the web form, and the Control class, which is the root base class of all the
other server controls in ASP.NET.
System.Web.UI.HtmlControls contains controls that directly map to HTML tags and make
porting from HTML pages easier. HtmlInputText, HtmlForm, and HtmlInputHidden are examples
of HTML controls.
System.Web.UI.WebControls contains a full-featured set of controls, including simple, list,
rich, and validation controls.
Pages:
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94