给按钮增加属性
btnDelAll.Attributes.Add("onClick",@"javascript:return confirm('警告:确定要删除本页所有记录吗? \n 删除本页记录可能会误删除一些记录!');");
this.btnList.Attributes.Add("onClick","javascript:window.open('UserDetail.aspx','_blank');return false;");
this.btnList.Attributes.Add("onClick","javascript:window.open('UserDetail.aspx','_blank');return false;");