Repeater.OnLoad(EventArgs) 方法

定义

引发 Load 事件并执行其他初始化。Raises the Load event and performs other initialization.

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

包含事件数据的 RepeaterItemEventArgs 对象。The RepeaterItemEventArgs object that contains the event data.

注解

OnLoad 方法通知 Repeater 控件,该控件应执行与相关联的页的每个 HTTP 请求所共有的操作,例如设置数据库查询。The OnLoad method notifies the Repeater control that it should perform actions that are common to each HTTP request for the page that it is associated with, such as setting up a database query. 在页面生命周期的此阶段中,将创建并初始化层次结构中的服务器控件,还原视图状态,并且窗体控件将反映客户端数据。At this stage in the page life cycle, server controls in the hierarchy are created and initialized, view state is restored, and form controls reflect client-side data.

适用于

另请参阅