Прочитај на енглеском Уреди

Делите путем


ImageButton.OnClientClick Property

Definition

Gets or sets the client-side script that executes when an ImageButton control's Click event is raised.

C#
[System.Web.UI.Themeable(false)]
public virtual string OnClientClick { get; set; }

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.

Applies to

Производ Верзије
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also