ASP.NET为按钮添加对话框

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

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

posted @ 2008-02-07 12:59  一个IT愤青  阅读(142)  评论(0编辑  收藏  举报