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 50 | Next

Rob Cameron and Dale Michalk

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


CHAPTER 1 ?–  SERVER CONTROL BASICS 11
Figure 1-5. Adding an event handler to the TextChanged event of the TextBox control
Figure 1-6. The completed ???Hello, World??? demonstration web form
The Web Page As a Control Tree
ASP.NET provides full programmatic access to the tags on an HTML page in an object-oriented
way. The architecture in ASP.NET that provides this capability is the .aspx page control tree. In
this section, we discuss the control tree as it relates to the ???Hello, World??? example.
12 CHAPTER 1 ?–  SERVER CONTROL BASICS
At first glance, the ???Hello, World??? web form would seem to contain only a few visible server
controls that were explicitly placed on the form. The reality is that the entire display surface of
the .aspx page becomes a cornucopia of controls during processing. Any HTML content in the
web form that is not part of the server controls laid out in the Visual Studio Designer is packaged
into a server control that renders the HTML. The control structure of the web form can be seen
by turning on the trace features of ASP.NET through setting the Trace=True attribute on the
Page directive:
<%@ Page Language="C#" Trace="true"
MasterPageFile="../Master Page/ControlsBook2MasterPage.master"
AutoEventWireup="true" CodeFile="HelloWorld.


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