Button1.Attributes.Add("onclick","return confirm(’确认?’)"); button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
转:https://www.cnblogs.com/wuhuisheng/archive/2010/07/14/1777253.html