Handles the System.Web.UI.Control.Init event.
- e
- An EventArgs object that contains the event data.
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.