Skip to main content
.NET Framework Class Library
ControlPreRender 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 [%$TOPIC/768a7bzf_en-us_VS_110_2_0_0_0_0%]
public event [%$TOPIC/768a7bzf_en-us_VS_110_2_0_1_0_0%] PreRender
public:
 event [%$TOPIC/768a7bzf_en-us_VS_110_2_0_2_0_0%]^ PreRender {
	void add ([%$TOPIC/768a7bzf_en-us_VS_110_2_0_2_0_1%]^ value);
	void remove ([%$TOPIC/768a7bzf_en-us_VS_110_2_0_2_0_2%]^ value);
}
member PreRender : IEvent<[%$TOPIC/768a7bzf_en-us_VS_110_2_0_3_0_0%],
    [%$TOPIC/768a7bzf_en-us_VS_110_2_0_3_0_1%]>
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.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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