Control.PreRender 事件

定义

在加载 Control 对象之后、呈现之前发生。Occurs after the Control object is loaded but prior to rendering.

public:
 event EventHandler ^ PreRender;
public event EventHandler PreRender;
member this.PreRender : EventHandler 
Public Custom Event PreRender As EventHandler 

注解

使用此事件来执行任何更新,然后将服务器控件呈现到页面。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.

适用于

另请参阅