Control.Load Event
.NET Framework 2.0
Occurs when the server control is loaded into the Page object.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Control Members
System.Web.UI Namespace
Assembly: System.Web (in system.web.dll)
// This is the constructor for a custom Page class. // When this constructor is called, it associates the Control.Load event, // which the Page class inherits from the Control class, with the Page_Load // event handler for this version of the page. public MyPage() { Load += new EventHandler(Page_Load); }
// This is the constructor for a custom Page class.
// When this constructor is called, it associates the Control.Load event,
// which the Page class inherits from the Control class, with the Page_Load
// event handler for this version of the page.
public MyPage()
{
add_Load(new EventHandler(Page_Load));
} //MyPage
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
Control ClassControl Members
System.Web.UI Namespace