Button.OnClientClick
Button.OnClientClickGets 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
String
The client-side script that executes when a Button control‘s Click event is raised. ? RemarksUse 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 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("ctl00$cphMain$btnAction","",true,"Action",false,false))" id="ctl00_cphMain_btnAction"> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |