Button::OnClientClick Property
.NET Framework (current version)
Namespace:
System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Return to top
Assembly: System.Web (in System.Web.dll)
Use the OnClientClick property to specify additional client-side script that executes when a Button control's Click event is raised. The script that you specify for this property is rendered in the 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 ThemeableAttribute and ASP.NET Themes and Skins.
.NET Framework
Available since 2.0
Available since 2.0
Show: