Syntax
CSharp
protected override void OnInit (
EventArgs e
)
VisualBasic
Protected Overrides Sub OnInit ( _
e As EventArgs _
)
ManagedCPlusPlus
protected:
virtual void OnInit (
EventArgs^ e
) override
JSharp
Parameters
- e (EventArgs)
An EventArgs object that contains the event data.
Remarks
The UpdatePanel control's ContentTemplate property is instantiated during the OnInit(EventArgs) method.
The OnInit(EventArgs) method is used by control developers to extend the functionality of the UpdatePanel control.
Notes For Inheritors
When you override the OnInit(EventArgs) method in a derived class, make sure to call the OnInit(EventArgs) method of the base class so that registered delegates can receive the event.
Exceptions
Assembly: System.Web.Extensions (Module: System.Web.Extensions)