
ParseChildrenAttribute | 667
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Returned By
Control.Page
Passed To
Control.Page, UserControl.InitializeAsUserControl( )
PageParser
System.Web.UI (system.web.dll)
sealed class
This class provides a page parser that compiles an .aspx file into a custom Page object.
Hierarchy
System.Object ➝ BaseParser ➝ TemplateParser ➝ TemplateControlParser ➝ PageParser
Pair
System.Web.UI (system.web.dll)
class
This class is used internally for the LosFormatter. It contains two types that can be serial-
ized into view state.
ParseChildrenAttribute
System.Web.UI (system.web.dll)
sealed class
You can use this attribute to mark the class declaration for any custom controls that
you create. If you specify True for the ChildrenAsProperties property, the ASP.NET parser will
treat any sub-elements inside your control tag as object properties. If you do not use
this attribute or you specify False, ASP.NET will assume that nested elements should be
added as child controls. In this case, you can still set object properties by using the
“object walker” syntax, where properties are split by using a dash (as in <MyControls
MyObject-MyProperty="Value" />).
public sealed class PageParser : TemplateControlParser {
// Public Constructors
public PageParser();
// Public Static Methods
public static IHttpHandler GetCompiledPageInstance ...