This documentation is archived and is not being maintained.
ControlBuilder::OnAppendToParentBuilder Method
Visual Studio 2010
Notifies the ControlBuilder that it is being added to a parent control builder.
Assembly: System.Web (in System.Web.dll)
Parameters
- parentBuilder
- Type: System.Web.UI::ControlBuilder
The ControlBuilder object to which the current builder is added.
This example overrides the OnAppendToParentBuilder method to check the ControlType property to determine what type of control this builder is applied to. If it is a CustomTextBox, the builder checks whether the value of the HasAspCode property is included in the control. If so, an exception is thrown, if not the HasBody method is called.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: