Raises the PreRender event, and registers script blocks and services for partial-page updates.
Syntax
CSharp
protected override void OnPreRender (
EventArgs e
)
VisualBasic
Protected Overrides Sub OnPreRender ( _
e As EventArgs _
)
ManagedCPlusPlus
protected:
virtual void OnPreRender (
EventArgs^ e
) override
JSharp
Parameters
- e (EventArgs)
An EventArgs object that contains the event data.
Remarks
For information about the DOM, see the Document Object Model (DOM) Level 1 Specification on the World Wide Web Consortium (W3C) Web site.
Notes For Inheritors
When overriding this method, call the base OnPreRender(EventArgs) method so that script blocks and services are correctly handled for partial-page rendering.
Exceptions
| Exception | Condition |
|---|
| InvalidOperationException | Partial-page rendering is being attempted for a browser that does not support at least DOM Level 1.0. |
Assembly: System.Web.Extensions (Module: System.Web.Extensions)