Control.PreRender Control.PreRender Control.PreRender Control.PreRender Event

定义

在加载 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.

适用于

另请参阅