Page.GetPostBackClientEvent(Control, String) Method

Definition

Caution

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

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.

C#
public string GetPostBackClientEvent(System.Web.UI.Control control, string argument);
C#
[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);

Parameters

control
Control

The server control that receives the client event postback.

argument
String

A String that is passed to RaisePostBackEvent(String).

Returns

The string that represents the client event.

Attributes

Remarks

See the ClientScriptManager class for alternatives to this deprecated member.

Applies to

Product Versions (Obsolete)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

See also