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.

適用於

另請參閱