给按钮增加属性

   btnDelAll.Attributes.Add("onClick",@"javascript:return confirm('警告:确定要删除本页所有记录吗? \n 删除本页记录可能会误删除一些记录!');");
   this.btnList.Attributes.Add("onClick","javascript:window.open('UserDetail.aspx','_blank');return false;");
posted @ 2005-11-03 14:12  泡面 @ 幸福  阅读(202)  评论(0编辑  收藏  举报