SqlDataSource.OnInit(EventArgs) SqlDataSource.OnInit(EventArgs) SqlDataSource.OnInit(EventArgs) SqlDataSource.OnInit(EventArgs) Method

定义

LoadComplete 事件处理程序添加到包含 Page 控件的 SqlDataSource 控件中。Adds a LoadComplete event handler to the Page control that contains the SqlDataSource control.

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)

参数

e
EventArgs EventArgs EventArgs EventArgs

包含事件数据的 EventArgsAn EventArgs that contains the event data.

注解

SqlDataSource对象添加的事件处理程序SelectParameters更新和FilterParameters值。The event handler that is added by the SqlDataSource object updates the SelectParameters and FilterParameters values. 如果更新值, DataSourceChanged则引发事件, 从而导致绑定SqlDataSource到控件的任何控件重新绑定。If the values are updated, the DataSourceChanged event is raised, causing any controls that are bound to the SqlDataSource control to rebind.

适用于

另请参阅