Skip to main content
.NET Framework Class Library
Control..::.PreRender Event

Occurs after the Control object is loaded but prior to rendering.

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Syntax
Public Event PreRender As EventHandler
public event EventHandler PreRender
public:
 event EventHandler^ PreRender {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
member PreRender : IEvent<EventHandler,
    EventArgs>
Remarks

Use this event to perform any updates before 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.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.