System.Web.UI.UserControl Members

The members of System.Web.UI.UserControl are listed below.

See Also: Inherited members from System.Web.UI.TemplateControl

Public Constructors

Initializes a new instance of the System.Web.UI.UserControl class.

Public Properties

[read-only]
ApplicationSystem.Web.HttpApplicationState.

Gets the System.Web.HttpContext.Application object for the current Web request.

[read-only]
AttributesAttributeCollection.

Gets a collection of all attribute name and value pairs declared in the user control tag within the .aspx file.

[read-only]
CacheSystem.Web.Caching.Cache.

Gets the System.Web.Caching.Cache object that is associated with the application that contains the user control.

[read-only]
CachePolicyControlCachePolicy.

Gets a reference to a collection of caching parameters for this user control.

[read-only]
IsPostBackbool.

Gets a value indicating whether the user control is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.

[read-only]
RequestSystem.Web.HttpRequest.

Gets the System.Web.HttpRequest object for the current Web request.

[read-only]
ResponseSystem.Web.HttpResponse.

Gets the System.Web.HttpResponse object for the current Web request.

[read-only]
ServerSystem.Web.HttpServerUtility.

Gets the System.Web.HttpServerUtility object for the current Web request.

[read-only]
SessionSystem.Web.SessionState.HttpSessionState.

Gets the System.Web.SessionState.HttpSessionState object for the current Web request.

[read-only]
TraceSystem.Web.TraceContext.

Gets the System.Web.TraceContext object for the current Web request.

Public Methods

DesignerInitialize()

Performs any initialization steps on the user control that are required by RAD designers.

InitializeAsUserControl(Page)

Initializes the System.Web.UI.UserControl object that has been created declaratively. Since there are some differences between pages and user controls, this method makes sure that the user control is initialized properly.

MapPath(string) : string

Assigns a virtual file path, either absolute or relative, to a physical file path.

Protected Methods

override
LoadViewState(object)

Restores the view-state information from a previous user control request that was saved by the UserControl.SaveViewState method.

override
OnInit(EventArgs)

Raises the Control.Init event.

override
SaveViewState() : object

Saves any user control view-state changes that have occurred since the last page postback.

Explicitly Implemented Interface Members

System.Web.UI.IFilterResolutionService.CompareFiltersDocumentation for this section has not yet been entered.
System.Web.UI.IFilterResolutionService.EvaluateFilterDocumentation for this section has not yet been entered.
System.Web.UI.IAttributeAccessor.GetAttribute

Returns the value of the specified user control attribute.

System.Web.UI.IUserControlDesignerAccessor.InnerTextstring.

Gets or sets the text that appears between the opening and closing tags of a user control.

System.Web.UI.IAttributeAccessor.SetAttribute

Sets the value of the specified user control attribute.

System.Web.UI.IUserControlDesignerAccessor.TagNamestring.

Gets or sets the full tag name of the user control.