给按钮在后台添加属性

this.Button1.Attributes.Add("onclick","javascript:if(confirm('继续吗?');"){return true;}else{return false;}");
原文地址:https://www.cnblogs.com/paste/p/2051034.html