
678
|
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.
Hierarchy
System.Object ➝ Control(System.ComponentModel.IComponent, System.IDisposable,
IParserAccessor, IDataBindingsAccessor)
➝ TemplateControl(INamingContainer) ➝ User-
Control(IAttributeAccessor, IUserControlDesignerAccessor)
Subclasses
System.Web.UI.MobileControls.MobileUserControl
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.
Hierarchy
System.Object ➝ ControlBuilder ➝ UserControlControlBuilder
ValidationPropertyAttribute
System.Web.UI (system.web.dll)
sealed class
This attribute specifies which property of a server control should be used for valida-
tion. Typically, this is a property like Text, Value,orSelectedItem. The ValidationPropertyAttribute
is used only when you create custom controls; existing ASP.NET controls use it
intrinsically.
This attribute is applied to the class declaration, ...