Page |
Public Property Page() As Page |
Gives the control's factory/controller code access to the hosting ViewPageBase-derived page, so a control can reach page-level context (for example the page's ViewID/model instance or MessageControl) rather than duplicating that plumbing at the control level. |
System.Web.UI.UserControl |
Attributes |
Public ReadOnly Property Attributes() As AttributeCollection |
Lets control code-behind set ad hoc HTML attributes on the control's outer tag when the strongly typed ViewControlBase/PageMode surface doesn't cover a needed rendering detail. |
System.Web.UI.UserControl |
IsPostBack |
Public ReadOnly Property IsPostBack() As Boolean |
Distinguishes the control's first load (when the controller typically performs initial data retrieval) from a postback (when it typically only processes user input), mirroring the same distinction ViewPageBase makes at the page level. |
System.Web.UI.UserControl |
Session |
Public ReadOnly Property Session() As HttpSessionState |
Gives the control access to the same HttpSessionState that ViewPageBase uses for session-based ViewState persistence and multi-model ViewID storage, so a control's controller can share that session-scoped state. |
System.Web.UI.UserControl |
Request |
Public ReadOnly Property Request() As HttpRequest |
Exposes the inbound request (query string, form values, host address) to the control's controller, the same request data ViewPageBase inspects for its __SAIFPID view identifier and host-based ViewState decision. |
System.Web.UI.UserControl |
Response |
Public ReadOnly Property Response() As HttpResponse |
Lets the control's controller write directly to the outgoing response (for example redirects or headers) as part of the shared factory/controller pipeline. |
System.Web.UI.UserControl |
Server |
Public ReadOnly Property Server() As HttpServerUtility |
Provides server-side utility operations (such as HTML encoding or error transfer) available to the control's controller code. |
System.Web.UI.UserControl |
Cache |
Public ReadOnly Property Cache() As Cache |
Standard ASP.NET application-wide Cache accessor exposed on the control; no library-specific caching usage by ViewControlBase or its controllers is established in source.** |
System.Web.UI.UserControl |
Controls |
Public ReadOnly Property Controls() As ControlCollection |
Exposes the control's child-control tree so NavigationManager and controller code can locate the specific bound input (for example the control targeted by BoundControlId) at render time. |
System.Web.UI.Control |
ID |
Public Property ID() As String |
Identifies the control instance within its naming container; controllers and FindControl calls in the shared pipeline use this to resolve a specific bound child. |
System.Web.UI.Control |
Visible |
Public Property Visible() As Boolean |
Lets controller logic driven by PageMode (add/edit/view) hide or show the control as a unit, without removing it from the control tree. |
System.Web.UI.Control |
ViewState |
Protected ReadOnly Property ViewState() As StateBag |
Holds the control's own postback state; because ViewControlBase does not override PageStatePersister itself, this state is persisted according to whatever policy the hosting ViewPageBase page applies. |
System.Web.UI.Control |
DataBind |
Public Overridable Sub DataBind() |
Standard ASP.NET data-binding entry point on the control; no call site in ViewControlBase or NavigationManager is established in source, so any invocation by a derived control's own code-behind is outside this library's traced behavior.** |
System.Web.UI.Control |
FindControl |
Public Function FindControl(ByVal id As String) As Control |
Used by NavigationManager and controller code to resolve the specific input control identified by ID before generating focus scripts or binding data to it. |
System.Web.UI.Control |
OnInit |
Protected Overridable Sub OnInit(ByVal e As EventArgs) |
Extension point derived controls can override to run their own setup before the factory/controller pair begins its initialization sequence. |
System.Web.UI.Control |
OnLoad |
Protected Overridable Sub OnLoad(ByVal e As EventArgs) |
Extension point derived controls can override to hook the control-level Load stage of the same lifecycle that ViewPageBase.Page_Load drives at the page level. |
System.Web.UI.Control |