aspx.cs"
Inherits="Ch01_HelloWorld" Title="Ch01 Hello World!" %>
You no longer need to make sure that tracing is enabled in the
XML element inside
of the web.config configuration file for the web application with .NET Framework 2.0 and later.
However, if you wish to enable and customize the trace functionality, you have to paste the
element within the element of the web.config file for the application:
enabled="true"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
Figure 1-7 shows the portion of the trace output that displays the control tree for the
web form.
Figure 1-7. Tracing the control tree of the ???Hello, World??? web form
The X-ray vision into ASP.NET provided by the trace feature dissects the web form
in gory detail. At the top is the Page control that represents the web form of type ASP.
ch01_helloworld_aspx. Below it are the server controls that you would expect to be there:
DropDownList, TextBox, Button, and Label. What you might not expect to see are the HtmlForm,
DataBoundLiteralControl, and LiteralControl objects in the control tree trace.
CHAPTER 1 ?– SERVER CONTROL BASICS 13
HtmlForm is responsible for representing the