DataBoundControl.OnLoad(EventArgs) 方法

定义

处理 Load 事件。Handles the Load event.

protected public:
 override void OnLoad(EventArgs ^ e);
protected internal override void OnLoad (EventArgs e);
override this.OnLoad : EventArgs -> unit
Protected Friend Overrides Sub OnLoad (e As EventArgs)

参数

e
EventArgs

包含事件数据的 EventArgs 对象。An EventArgs object that contains event data.

注解

类调用方法来设置数据RequiresDataBinding绑定控件的初始化状态, 并将属性设置为true (如果 HTTP 请求不是回发)。 BaseDataBoundControl.ConfirmInitState DataBoundControlThe DataBoundControl class calls the BaseDataBoundControl.ConfirmInitState method to set the initialized state of the data-bound control and sets the RequiresDataBinding property to true if the HTTP request is not a postback.

适用于