Share via


SPLinkButton.OnClientClick property

Gets or sets the client-side ECMA script to be run when the user clicks this SPLinkButton.

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

Syntax

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

value = instance.OnClientClick

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

Property value

Type: System.String
A string that contains the script.

See also

Reference

SPLinkButton class

SPLinkButton members

Microsoft.SharePoint.WebControls namespace