
644
|
Chapter 36: The System.Web.UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Subclasses
Multiple types
Returned By
BuildMethod.{EndInvoke( ), Invoke( )}, ControlCollection.{Owner, this}, System.Web.UI.
Design.ControlParser.ParseControl( ), DesignTimeTemplateParser.ParseControl( ), System.
Web.UI.MobileControls.Form.ControlToPaginate, PartialCachingControl.CachedControl,
TemplateControl.{LoadControl( ), ParseControl( )}, System.Web.UI.WebControls.CheckBox-
List.FindControl( )
Passed To
Multiple types
ControlBuilder
System.Web.UI (system.web.dll)
class
This class is used transparently by the ASP.NET network when generating a Page
object. It works with the appropriate parser object to build the relevant controls. You
can derive from this class to create your custom control builders for your custom
controls. Just override the appropriate methods and apply the ControlBuilderAttribute to
your control class to instruct ASP.NET to use your custom ControlBuilder. For example,
you could override the AllowWhitespaceLiterals( ) method to return False. This override
instructs ASP.NET to refrain from creating LiteralControl objects for any whitespace it
finds inside a control. Note, however, that it is easiest and most common to use the
standard ControlBuilder for your custom controls.
protected virtual void RenderChildren(HtmlTextWriter ...