Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET LinkButton OnClientClick Property

ASP.NET LinkButton OnClientClick Property


LinkButton Control LinkButton control


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 run through the LinkButton's "OnClick" event.

Syntax

/>

property 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:

Text="Click Me" runat="server" />


Demo Example »


LinkButton Control LinkButton control