Page.GetPostBackClientEvent(Control, String) 方法

定义

注意

The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202

获取可在客户端事件中使用的引用,以将指定控件和指定事件参数发回给服务器。

public:
 System::String ^ GetPostBackClientEvent(System::Web::UI::Control ^ control, System::String ^ argument);
public string GetPostBackClientEvent (System.Web.UI.Control control, string argument);
[System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")]
public string GetPostBackClientEvent (System.Web.UI.Control control, string argument);
member this.GetPostBackClientEvent : System.Web.UI.Control * string -> string
[<System.Obsolete("The recommended alternative is ClientScript.GetPostBackEventReference. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.GetPostBackClientEvent : System.Web.UI.Control * string -> string
Public Function GetPostBackClientEvent (control As Control, argument As String) As String

参数

control
Control

接收客户端事件回发的服务器控件。

argument
String

传递给 RaisePostBackEvent(String)String

返回

String

表示客户端事件的字符串。

属性

注解

ClientScriptManager有关此已弃用成员的替代项,请参阅该类。

适用于

另请参阅