Using a ControlBuilder
The AddParsedSubObject() method enables you to specify which parsed controls get added to a Controls collection. Sometimes, you must take even more control over the parsing of a control.
When the ASP.NET Framework parses a page, the Framework uses a special type of class called a ControlBuilder class. You can modify the way in which the content of a control is parsed by associating a custom ControlBuilder with a control.
Here’s a list of the most useful methods supported by the ControlBuilder class:
• AllowWhiteSpaceLiterals()—
Enables you to trim white space from the contents of a control.
• AppendLiteralString()—
Enables you trim all literal content from the contents of a control.
• GetChildControlType()—
Enables you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access