System.Web.UI.WebControls.SqlDataSource.OnInit Method

Adds a System.Web.UI.Page.LoadComplete event handler to the System.Web.UI.Page control that contains the System.Web.UI.WebControls.SqlDataSource control.

Syntax

protected override void OnInit (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

The event handler that is added by the System.Web.UI.WebControls.SqlDataSource object updates the SqlDataSource.SelectParameters and SqlDataSource.FilterParameters values. If the values are updated, the System.Web.UI.IDataSource.DataSourceChanged event is raised, causing any controls that are bound to the System.Web.UI.WebControls.SqlDataSource control to rebind.

Requirements

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