DetailsView.RaisePostBackEvent(String) 方法

定义

DetailsView 控件回发到服务器时引发此控件的合适的事件。Raises the appropriate events for the DetailsView control when it posts back to the server.

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

为引发的一个或多个事件创建 CommandEventArgs 时所使用的事件参数。The event argument from which to create a CommandEventArgs for the event or events that are raised.

实现

注解

当发生引发DetailsView控件RaisePostBackEvent的相应事件的回发事件时, 页面将调用方法。The page calls the RaisePostBackEvent method when a postback event occurs that raises the appropriate events for a DetailsView control. 此调用发生在加载并更改通知完成之后、进行预呈现之前的页面生命周期中。This call occurs in the page life cycle after loading and change notification are complete, but before prerendering occurs. 实现此方法是为了为引发的CommandEventArgs事件创建对象。This method has been implemented to create a CommandEventArgs object for the events that are raised.

备注

此方法主要由控件开发人员用来扩展DetailsView控件。This method is used primarily by control developers to extend the DetailsView control.

适用于

另请参阅