Page.GetPostBackClientEvent(Control, String) Metodo

Definizione

Attenzione

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

Ottiene un riferimento che può essere usato in un evento client per eseguire il postback al server per il controllo specificato e con gli argomenti dell'evento indicati.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);
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

Parametri

control
Control

Controllo server che riceve il postback dell'evento client.The server control that receives the client event postback.

argument
String

Oggetto String passato a RaisePostBackEvent(String).A String that is passed to RaisePostBackEvent(String).

Restituisce

String

Stringa che rappresenta l'evento client.The string that represents the client event.

Attributi

Commenti

Vedere la ClientScriptManager classe per le alternative a questo membro deprecato.See the ClientScriptManager class for alternatives to this deprecated member.

Si applica a

Vedi anche