Export (0) Print
Expand All
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

System.Web.UI Namespace

The System.Web.UI namespace provides classes and interfaces that allow you to create ASP.NET server controls and pages that will appear in your Web applications as user interface elements. This namespace includes the Control class, which provides all server controls, whether HTML server controls, Web server controls, or user controls, with a common set of functionality. It also includes the Page class, which is generated automatically whenever a request is made for an .aspx file contained in your Web application. You can inherit from both of these classes. Also provided are classes which provide the server controls with data binding functionality, the ability to save the view state of a given control or page, and parsing functionality for both programmable and literal controls.

Namespace hierarchy

Classes

Class Description
AttributeCollection Provides object-model access to all attributes declared in the opening tag of an ASP.NET server control element. This class cannot be inherited.
BaseParser Provides a base set of functionality for classes involved in parsing ASP.NET page requests and server controls.
BasePartialCachingControl Provides the base functionality for the StaticPartialCachingControl and the PartialCachingControl classes.
ConstructorNeedsTagAttribute Specifies that a server control needs a tag name in its constructor.
Control Defines the properties, methods, and events that are shared by all ASP.NET server controls.
ControlBuilder Supports the page parser in building a control and the child controls it contains.
ControlBuilderAttribute Specifies a ControlBuilder class for building a custom control within the ASP.NET parser. This class cannot be inherited.
ControlCollection Provides a collection container that enables ASP.NET server controls to maintain a list of their child controls.
CssStyleCollection Contains the HTML cascading-style sheets (CSS) inline style attributes for a specified HTML server control. This class cannot be inherited.
DataBinder Provides support for RAD designers to generate and parse Data Binding Expression Syntax. This class cannot be inherited.
DataBinding Contains information about a single data-binding expression in an ASP.NET server control, which allows rapid-application development (RAD) designers, such as Visual Studio .NET, to create data-binding expressions at design time. This class cannot be inherited.
DataBindingCollection Provides a collection of DataBinding objects for an ASP.NET server control. This class cannot be inherited.
DataBindingHandlerAttribute Specifies a design-time class that performs data binding of controls within a designer. This class cannot be inherited.
DataBoundLiteralControl Creates a control for HTML text to allow the handling of <%# %> data-binding expressions that are processed by the server. It persists the value of its Text property to view state. This class cannot be inherited.
EmptyControlCollection Provides standard support for a ControlCollection that is always empty.
Html32TextWriter Provides a text writer for ASP.NET pages and server controls that render content to HTML 3.2 clients.
HtmlTextWriter Writes a sequential series of HTML-specific characters and text on a Web Forms page. This class provides formatting capabilities that ASP.NET server controls use when rendering HTML content to clients.
ImageClickEventArgs Provides data for any events that occur when a user clicks on a image-based ASP.NET server control, such as the HtmlInputImage or ImageButton server controls. This class cannot be inherited.
LiteralControl Represents HTML elements, text, and any other strings in an ASP.NET page that do not require processing on the server.
LosFormatter Serializes the view state for a Web Forms page. This class cannot be inherited.
Page Represents an .aspx file, also known as a Web Forms page, requested from a server that hosts an ASP.NET Web application.
Pair Holds two objects that can be added together to an ASP.NET server control's view state.
ParseChildrenAttribute Defines a metadata attribute that you can use when developing ASP.NET server controls. Use it to indicate whether XML elements nested within the server control's tags, when the control is used declaratively on a page, should be treated as properties or as child controls. This class cannot be inherited.
PartialCachingAttribute Defines the metadata attribute that Web Forms user controls use to indicate how their output is cached. This class cannot be inherited.
PartialCachingControl Created when a user control (.ascx file) is specified for output caching, using either the @ OutputCache directive or the PartialCachingAttribute, and is added to a page programmatically.
PersistChildrenAttribute Defines a metadata attribute used by ASP.NET server controls. The attribute indicates whether, at design time, the child controls of an ASP.NET server control should be persisted as nested inner controls. This class cannot be inherited.
PersistenceModeAttribute Defines the metadata attribute that specifies how an ASP.NET server control property or event is persisted to an ASP.NET page. This class cannot be inherited.
PropertyConverter Contains helper functions to convert property values to and from strings.
StateBag Manages the view state of ASP.NET server controls, including pages. This class cannot be inherited.
StateItem Represents an item that is saved in the StateBag class when view state information is persisted between Web requests. This class cannot be inherited.
StaticPartialCachingControl Represents an instance of the UserControl class when it has been specifed for output caching and included declaratively in a page or another user control.
TagPrefixAttribute Defines the tag prefix used in a Web page to identify custom controls. This class cannot be inherited.
TemplateBuilder Supports the page parser in building a template and the child controls it contains.
TemplateContainerAttribute Declares the type of the INamingContainer that will contain the template once it is created.
TemplateControl Provides the Page class and the UserControl class with a base set of functionality.
ToolboxDataAttribute Specifies the default tag generated for a custom control when it is dragged from a toolbox in a tool such as Visual Studio.
Triplet Holds three objects that can be added together to an ASP.NET server control's view state.
UserControl Represents an .ascx file, also known as a user control, requested from a server that hosts an ASP.NET Web application. The file must be called from a Web Forms page or a parser error will occur.
UserControlControlBuilder Supports the page parser in building a user control and any child user controls that it contains.
ValidationPropertyAttribute Defines the metadata attribute that ASP.NET server controls use to identify a validation property. This class cannot be inherited.
ValidatorCollection Exposes an array of IValidator references. This class cannot be inherited.

Interfaces

Interface Description
IAttributeAccessor Defines methods used by ASP.NET server controls to provide programmatic access to any attribute declared in the opening tag of a server control.
IDataBindingsAccessor Allows access to the collection of data-binding expressions on a control at design time.
INamingContainer Identifies a container control that creates a new ID namespace within a Page object's control hierarchy. This is a marker interface only.
IParserAccessor Defines the method that ASP.NET server controls must implement to recognize when elements, either HTML or XML, are parsed.
IPostBackDataHandler Defines methods that ASP.NET server controls must implement to automatically load post back data.
IPostBackEventHandler Defines the method ASP.NET server controls must implement to handle post back events.
IStateManager Defines the properties and methods any class must implement to support view state management for a server control.
ITemplate Defines the method to implement for populating an ASP.NET server control with child controls when using a control with inline templates when declared in an .aspx file.
IUserControlDesignerAccessor Defines the properties to implement to allow the designer to access information about a UserControl at design-time.
IValidator Defines the properties and methods that objects that participate in Web Forms validation must implement.

Delegates

Delegate Description
ImageClickEventHandler Represents the method that will handle any events that are raised when a user clicks on an image-based ASP.NET server control.

Enumerations

Enumeration Description
HtmlTextWriterAttribute Specifies the HTML attributes that an HtmlTextWriter or Html32TextWriter object writes to the opening tag of an HTML element when a Web request is processed.
HtmlTextWriterStyle Specifies the HTML styles available to an HtmlTextWriter or Html32TextWriter object output stream.
HtmlTextWriterTag Specifies the HTML tags that can be passed to an HtmlTextWriter or Html32TextWriter object output stream.
OutputCacheLocation Specifies the valid values for the location of the output cache.
PersistenceMode Specifies how an ASP.NET server control property or event is persisted declaratively in an .aspx or .ascx file.

See Also

.NET Framework Class Library

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.