Page.GetPostBackClientHyperlink(Control, String) Page.GetPostBackClientHyperlink(Control, String) Page.GetPostBackClientHyperlink(Control, String) Method

定義

警告

此 API 現已淘汰。

取得可用於用戶端事件中的參考,並附加 javascript: 至其開頭,針對指定控制項並以指定事件引數回傳給伺服器。Gets a reference, with javascript: appended to the beginning of it, that can be used in a client event to post back to the server for the specified control and with the specified event arguments.

public:
 System::String ^ GetPostBackClientHyperlink(System::Web::UI::Control ^ control, System::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

參數

control
Control Control Control

用來處理回傳的伺服器控制項。The server control to process the postback.

argument
String String String

傳遞給伺服器控制項的參數。The parameter passed to the server control.

傳回

字串,表示對包含目標控制項 ID 和事件引數之回傳函式的 JavaScript 呼叫。A string representing a JavaScript call to the postback function that includes the target control's ID and event arguments.

備註

請參閱GetPostBackClientHyperlink這個已被取代的成員的替代方案的方法。See the GetPostBackClientHyperlink method for an alternative to this deprecated member.

適用於

另請參閱