BaseDataBoundControl::OnInit Method (EventArgs^)

 

Handles the Init event.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public protected:
virtual void OnInit(
	EventArgs^ e
) override

Parameters

e
Type: System::EventArgs^

An EventArgs object that contains the event data.

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.

.NET Framework
Available since 2.0
Return to top
Show: