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 with the specified event arguments and Boolean indication whether to register the post back for event validation.

Syntax

public string GetPostBackClientHyperlink (Control control, string argument, bool registerForEventValidation)

Parameters

control
The server control to process the postback.
argument
The parameter passed to the server control.
registerForEventValidation
true to register the postback event for validation; false to not register the post back event for validation.

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