PreRender Event
Collapse the table of content
Expand the table of content

Control.PreRender Event

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

[Visual Basic]
Public Event PreRender As EventHandler
public event EventHandler PreRender;
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.


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.


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

© 2015 Microsoft