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

定義

警告

此 API 現已淘汰。

取得可用於用戶端事件的參考,以針對指定的控制項回傳至伺服器,並且包含指定的事件參數。Gets a reference 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 ^ GetPostBackClientEvent(System::Web::UI::Control ^ control, System::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

參數

control
Control Control Control

接收用戶端事件回傳的伺服器控制項。The server control that receives the client event postback.

傳回

代表用戶端事件的字串。The string that represents the client event.

備註

請參閱ClientScriptManager替代項目至這個已被取代的成員的類別。See the ClientScriptManager class for alternatives to this deprecated member.

適用於

另請參閱