asp.net 为按钮添加对话框

来源:互联网 发布:厦门长庚网络挂号 编辑:程序博客网 时间:2024/06/04 20:02
 ★为按钮添加对话框

Button1.Attributes.Add("onclick","return confirm('确认?')");

button.attributes.add("onclick","if(confirm('are you sure...?')){return true;}else{return false;}")

原创粉丝点击