Linux   发布时间:2022-03-31  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Button.OnClientClick大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

Button.onClientClick Gets or sets the client-side script that executes when a Button control‘s Click event is raised. [System.Web.UI.Themeable(false)] public virtual String OnClientClick { get; set;

Button.OnClientClick

Gets or sets the client-side script that executes when a Button control‘s Click event is raised.

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

 

Property Value@H_489_43@

The client-side script that executes when a Button control‘s Click event is raised.

 

REMARKs

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.

 

效果

<input type="submit" name="ctl00$cphMain$btnAction" value="OK" onclick="if(!MassupdateConfirm()) return false;

WebForm_dopostBACkWithOptions(new WebForm_PostBACkOptions(&quot;ctl00$cphMain$btnAction&quot;,&quot;&quot;,true,&quot;Action&quot;,false,falsE))" id="ctl00_cphMain_btnAction">

大佬总结

以上是大佬教程为你收集整理的Button.OnClientClick全部内容,希望文章能够帮你解决Button.OnClientClick所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。