System.Web.UI.WebControls.BaseDataBoundControl.OnInit Method

Handles the System.Web.UI.Control.Init event.

Syntax

protected override void OnInit (EventArgs e)

Parameters

e
An EventArgs object that contains the event data.

Remarks

The BaseDataBoundControl.OnInit(EventArgs) method first calls the base class System.Web.UI.Control.OnInit(EventArgs) method, and then calls the BaseDataBoundControl.OnPagePreLoad(object, EventArgs) method to handle the System.Web.UI.Page.PreLoad event. Additionally, if the HTTP request to the page is a post back and view state is enabled, the BaseDataBoundControl.OnInit(EventArgs) method sets the BaseDataBoundControl.RequiresDataBinding property to true.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0