asp.net.ph

UserControl Class

System.Web.UI Namespace


Represents an .ascx file when called in an .aspx file.

UserControl Class Members

Collapse   Constructors

Visibility Constructor Parameters
public UserControl ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Application HttpApplicationState [ Get ]
public Attributes AttributeCollection [ Get ]
public Cache Cache [ Get ]
public CachePolicy ControlCachePolicy [ Get ]
public IsPostBack Boolean [ Get ]
public Request HttpRequest [ Get ]
public Response HttpResponse [ Get ]
public Server HttpServerUtility [ Get ]
public Session HttpSessionState [ Get ]
public Trace TraceContext [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public DesignerInitialize ( ) Void
public InitializeAsUserControl ( Page page ) Void
protected LoadViewState ( Object savedState ) Void
public MapPath ( String virtualPath ) String
protected SaveViewState ( ) Object
public TryUpdateModel ( TModel model ) Boolean
public TryUpdateModel ( TModel model , IValueProvider valueProvider ) Boolean
public UpdateModel ( TModel model , IValueProvider valueProvider ) Void
public UpdateModel ( TModel model ) Void

Remarks

User controls are contained in ASP.NET Web Forms pages and offer Web developers an easy way to encapsulate commonly used Web UI. They are instantiated and cached in ways similar to Page objects. Unlike pages, however, user controls cannot be called independently. They can only be called from the page or other user control that contains them.

See Also

Web Forms User Controls Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph