ClientScriptManager.GetPostBackClientHyperlink Method (Control, String, Boolean)


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.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

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


Type: System.Web.UI.Control

The server control to process the postback.

Type: System.String

The parameter passed to the server control.

Type: System.Boolean

true to register the postback event for validation; false to not register the post back event for validation.

Return Value

Type: System.String

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

Using the GetPostBackEventReference method requires the control that handles the postback to implement the IPostBackEventHandler interface. To implement the IPostBackEventHandler interface for a Page, use the directive.

.NET Framework
Available since 2.0
Return to top