System.Web.UI.ClientScriptManager.GetPostBackClientHyperlink Method

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.

Syntax

public string GetPostBackClientHyperlink (Control control, string argument)

Parameters

control
The server control to process the postback.
argument
The parameter passed to the server control.

Returns

A string representing a JavaScript call to the postback function that includes the target control's ID and event arguments.

Remarks

Using the erload:System.Web.UI.ClientScriptManager.GetPostBackEventReference method requires the control that handles the postback to implement the System.Web.UI.IPostBackEventHandler interface. To implement the System.Web.UI.IPostBackEventHandler interface for a System.Web.UI.Page, use the @ Implements directive.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0