SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 54 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

The controls
are factored into three primary namespaces in the .NET Framework: System.Web.UI, System.
eb.UI.HtmlControls, and System.Web.UI.WebControls (see Figure 1-8).
14 CHAPTER 1 ?–  SERVER CONTROL BASICS
Figure 1-8. The major namespaces of ASP.NET under System.Web.UI
The System.Web.UI Namespace
At the top of the hierarchy is our first destination??”the System.Web.UI namespace and its root
controls. It contains the Control class, which is the mandatory parent class for all objects that
want to call themselves controls. Directly inheriting from the Control class in this namespace
is a set of specialized classes that implement the web form through the Page class, the user control
through the UserControl class, and the literal controls. The Page class and the literal controls
are discussed in detail in the previous ???Hello, World??? web form demonstration. We focus in
more detail on the UserControl class in the next chapter when we cover control creation.
System.Web.UI.HtmlControls Namespace
The controls under System.Web.UI.HtmlControls have the capability to take existing HTML
content and make it available as a server control with the addition of a runat="server??? attribute.
The canonical example of this type of control is turning an HTML text box into a server control:

The ASP.


Pages:
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6