SPLinkButton.ClientOnClickScriptContainingPrefixedUrl property

Gets or sets the client-side ECMA script that should be executed when the user clicks on this menu entry.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property ClientOnClickScriptContainingPrefixedUrl As String
    Get
    Set
'Usage
Dim instance As SPLinkButton
Dim value As String

value = instance.ClientOnClickScriptContainingPrefixedUrl

instance.ClientOnClickScriptContainingPrefixedUrl = value
public string ClientOnClickScriptContainingPrefixedUrl { get; set; }

Property value

Type: System.String
Returns String.

Remarks

This property simply sets the [OnClientClick] property after converting embedded URLs prefixed with "~site/" or "~sitecollection/" to be server-relative URLs.

See also

Reference

SPLinkButton class

SPLinkButton members

Microsoft.SharePoint.WebControls namespace