System.Web.UI.WebControls.Button.OnClientClick Property

Gets or sets the client-side script that executes when a System.Web.UI.WebControls.Button control's Button.Click event is raised.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.Web.UI.Themeable(false)]
public virtual string OnClientClick { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Button.OnClientClick property to specify additional client-side script that executes when a System.Web.UI.WebControls.Button control's Button.Click event is raised. The script that you specify for this property is rendered in the System.Web.UI.WebControls.Button control's OnClick attribute in addition to the control's predefined client-side script.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0