Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

OnInit Method (e)

Raises the Init event.

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

protected void OnInit (
	EventArgs e
)

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

ExceptionCondition
InvalidOperationException

The ContentTemplate property is being defined when the ContentTemplateContainer property has already been created.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)