ScriptManager.OnInit(EventArgs) 方法

定義

會提升事件, Init 並確保頁面上只有一個 ScriptManager 控制項存在。

protected public:
 override void OnInit(EventArgs ^ e);
protected internal override void OnInit(EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)

參數

e
EventArgs

事件資料。

例外狀況

頁面上存在多個實 ScriptManager 例。

給繼承者的注意事項

覆寫此方法時,請呼叫基礎 OnInit(EventArgs) 方法,確保腳本檔案能正確處理,以進行部分頁面渲染。

適用於

另請參閱