Raises the Init event and makes sure that only one ScriptManager control exists on the page.
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.
Notes For Inheritors
When overriding, call the base OnInit(EventArgs) method so that script blocks are correctly handled for partial-page rendering.
Exceptions
Assembly: System.Web.Extensions (Module: System.Web.Extensions)