Saturday, January 3, 2009

ASP.NET OnClientClick Property

Definition and Usage

The OnClientClick property is used to sets a client side script to be run when the Button control is clicked.

The script specified in this property is run by the Button's event "OnClick" in addition to the predefined script.
Syntax




Attribute Description
func Client side script to be run when button is clicked

Example

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







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







No comments: