ScriptManager.OnInit(EventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會提升事件, 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)
參數
事件資料。
例外狀況
頁面上存在多個實 ScriptManager 例。
給繼承者的注意事項
覆寫此方法時,請呼叫基礎 OnInit(EventArgs) 方法,確保腳本檔案能正確處理,以進行部分頁面渲染。