Share via


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) 方法,以便正確處理部分頁面轉譯的腳本檔案。

適用於

另請參閱