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. 在此事件期間,可以儲存伺服器控制項之 view 狀態中的任何變更。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.

適用於

另請參閱