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.
Assembly: System.Web (in System.Web.dll)
Public Function GetPostBackClientHyperlink ( control As Control, argument As String, registerForEventValidation As Boolean ) As String
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 postback event for validation; false to not register the post back event for validation.
Return Value
Type: System.StringA 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.
Available since 2.0