Export (0) Print
Expand All

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 @ Implements directive.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft