Page.GetPostBackClientEvent(Control, String) 方法

定義

警告

此 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. https://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

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

argument
String

傳遞至 RaisePostBackEvent(String)StringA String that is passed to RaisePostBackEvent(String).

傳回

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

屬性

備註

如需此已淘汰成員的替代方案,請參閱 ClientScriptManager 類別。See the ClientScriptManager class for alternatives to this deprecated member.

適用於

另請參閱