This documentation is archived and is not being maintained.

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
)

Parameters

control
Type: System.Web.UI::Control
The server control to process the postback
argument
Type: System::String
The parameter passed to the server control.
registerForEventValidation
Type: System::Boolean
true to register the post back 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, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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