System.Web.UI Namespace Control Class
Occurs when the control is about to render.
[ VB ]
Public Event PreRender As EventHandler
[ C# ]
public event EventHandler PreRender;
[ C++ ]
public: __event EventHandler* PreRender;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The event handler receives an EventArgs containing data related to the PreRender event.
Use this event to perform any updates or pre-rendering steps necessary before the output of 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.
Control Members