Easy Tutorial
❮ Prop Webcontrol Calendar Shownextprevmonth Prop Webcontrol Panel Defaultbutton ❯

ASP.NET LinkButton OnClientClick Property



Definition and Usage

The OnClientClick property is used to set the client-side script to run when the LinkButton control is clicked.

In addition to the predefined script, the script specified in this property can be run through the LinkButton's "OnClick" event.

Syntax

Attribute Description
func The client-side script to run when the LinkButton is clicked.

Example

The following example runs two scripts when the LinkButton control is clicked:


❮ Prop Webcontrol Calendar Shownextprevmonth Prop Webcontrol Panel Defaultbutton ❯