Export (0) Print
Expand All

Control.PreRender Event

Occurs when the server control is about to render to its containing Page object.

[Visual Basic]
Public Event PreRender As EventHandler
[C#]
public event EventHandler PreRender;
[C++]
public: __event EventHandler* PreRender;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

Use this event to perform any updates before the output the server control is rendered to the page. Any changes in the view state of the server control can be saved during this event. Such changes made in the rendering phase will not be saved.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Web.UI Namespace | Page | Control Execution Lifecycle | Web Forms Page Processing

Show:
© 2014 Microsoft