ImageButton.OnClientClick Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the client-side script that executes when an ImageButton control's Click event is raised.
public:
virtual property System::String ^ OnClientClick { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string OnClientClick { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.OnClientClick : string with get, set
Public Overridable Property OnClientClick As String
Property Value
The client-side script that executes when an ImageButton control's Click event is raised.
- Attributes
Remarks
Use the OnClientClick property to specify additional client-side script that executes when an ImageButton control's Click event is raised. The script that you specify for this property is rendered in the ImageButton 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.