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 单击的链接按钮的索引,该参数用于初始化 Index 对象的 属性 BulletedListEventArgs 。 方法RaisePostBackEvent通过将初始化BulletedListEventArgs的对象传递给 方法来OnClick引发Click事件。

方法 RaisePostBackEvent 可以选择在为控件引发 Click 事件之前执行验证。 若要在单击 中的链接按钮BulletedList时验证页面上的一组控件,请将 属性true设置为 CausesValidation ,并指定要在 属性中ValidationGroup验证的控件组。

适用于

另请参阅