Page.GetPostBackClientHyperlink(Control, String) 方法

定义

注意

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

获取一个引用,其 javascript: 开头追加到它的开头,该引用可用于客户端事件,以便将指定控件和指定事件参数发回服务器。

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

参数

control
Control

用于处理回发的服务器控件。

argument
String

传递给服务器控件的参数。

返回

一个字符串,表示对回发函数的 JavaScript 调用,其中包含目标控件的 ID 和事件参数。

属性

注解

GetPostBackClientHyperlink有关此已弃用成员的替代方法,请参阅此方法。

适用于

另请参阅