//在客户端浏览器用一个JavaS
<script type="text/javas
function check_selected()
{ var checkBoxList = document.getElementsByTagName("INPUT");
var count = 0;
for(var i = 0 ;i < checkBoxList.length; i++)
{ if(checkBoxList[i].type == "checkbox")
if(checkBoxList[i].checked)
count++;
}
if(count <= 0)
{ alert("请选择您要删除的记录!")
return false;
}
else
{ if(!confirm("确定删除该记录么?"))
return false;
else
return true;
}
}
</script>
<asp:Button ID="btn_retrieve" runat="server" Text="确定" On
<input id="btn_add" title="添加" type="button" value="添加" on
<asp:Button ID="btn_del" runat="server" On
转载自:http://auv2009.blog.163.com/blog/static/68858712200962033536561/