MobileControl.OnLoad(EventArgs) MobileControl.OnLoad(EventArgs) MobileControl.OnLoad(EventArgs) MobileControl.OnLoad(EventArgs) Method


引发 Unload 事件。 Raises the Unload event. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

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


EventArgs EventArgs EventArgs EventArgs

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


该控件包含自定义特性,而当前页不允许控件上存在自定义特性。 the control contains custom attributes and the current page does not allow custom attributes on controls.


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

使用IsPostBack属性来确定响应客户端回发而加载页面还是正对其进行加载和访问第一次。Use the IsPostBack property to determine whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.