BulletedList.RaisePostBackEvent(String) 方法

定義

表單回傳至伺服器時,會引發 BulletedList 控制項的事件。

protected:
 virtual void RaisePostBackEvent(System::String ^ eventArgument);
protected virtual void RaisePostBackEvent (string eventArgument);
abstract member RaisePostBackEvent : string -> unit
override this.RaisePostBackEvent : string -> unit
Protected Overridable Sub RaisePostBackEvent (eventArgument As String)

參數

eventArgument
String

引發事件之清單項目索引的字串表示。

備註

RaisePostBackEvent按一下專案清單中的連結按鈕時, BulletedList 控制項會在內部使用 方法。 包含的頁面會指定 參數中 eventArgument 按一下連結按鈕的 BulletedListEventArgs 索引,用來初始化 Index 物件的 屬性。 方法會將 RaisePostBackEvent 初始化 BulletedListEventArgs 的物件傳遞至 OnClick 方法,藉以引發 Click 事件。

方法 RaisePostBackEvent 可以選擇性地在引發 Click 控制項的事件之前執行驗證。 若要在按一下 內的連結按鈕 BulletedList 時驗證頁面上的控制項群組,請將 屬性設定 CausesValidationtrue ,並指定要在 屬性中驗證的 ValidationGroup 控制項群組。

適用於

另請參閱