Breyta

Deila með


BaseDataBoundControl.OnInit(EventArgs) Method

Definition

Handles the Init event.

protected public:
 override void OnInit(EventArgs ^ e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)

Parameters

e
EventArgs

An EventArgs object that contains the event data.

Remarks

The OnInit method first calls the base class OnInit method, and then calls the OnPagePreLoad method to handle the Page.PreLoad event. Additionally, if the HTTP request to the page is a post back and view state is enabled, the OnInit method sets the RequiresDataBinding property to true.

Applies to

See also