ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 464
نمايش فراداده

UserControlControlBuilder

System.Web.UI (system.web.dll)class

This class provides a control designer for all user controls, which is used implicitly. It provides the following basic functionality: it adds a child control to the UserControl.Controls collection for every nested control that it encounters within the user control tag, and it creates literal controls to represent any text between nested control tags. You can create a custom control builder for your user controls by deriving from this class.

public class 

UserControlControlBuilder : ControlBuilder { // Public Constructors public

UserControlControlBuilder ( ); // Public Instance Methods public override bool

NeedsTagInnerText ( ); // overrides ControlBuilder public override void

SetTagInnerText (string

text ); // overrides ControlBuilder }

Hierarchy

System.Object ControlBuilder UserControlControlBuilder