datalist多项删除
前台文件是:
<asp:datalist id= "Datalist1 " runat= "server ">
<HeaderTemplate>
<TABLE width= "100% " border= "0 " cellPadding= "1 " cellSpacing= "0 " bgcolor= "#6699FF ">
<TR>
<TD align= "center "> <strong> 标 题 </strong> </TD>
<TD width= "80 " align= "center "> <strong> 编辑 </strong> <input onclick= "checkalldelid(this.form) " type= "checkbox " value= "ON " name= "checkalldel ">
<script language= "javascript ">
<!--
function checkalldelid(form)
{
for (var i=0;i <form.delid.length;i++)
{
var e = form.delid[i];
if (e.name != 'chkall ')
e.checked = form.checkalldel.checked;
}
}
-->
</script>
</TD>
</TR>
</TABLE>
</HeaderTemplate>
<AlternatingItemStyle BackColor= "#E2E9FF "> </AlternatingItemStyle>
<ItemTemplate>
<TABLE style= "TABLE-LAYOUT: fixed; WORD-BREAK: break-all " height= "22 " cellSpacing= "0 " cellPadding= "0 "
width= "100% ">
<TR onmouseout= "this.style.backgroundColor="" " onmouseover= "this.style.backgroundColor="#dddddd" ">
<TD>
<asp:HyperLink id= "HyperLink1 " runat= "server " Target= "_blank " Text= ' <%# DataBinder.Eval(Container.DataItem, "RsjTitle ") %> ' NavigateUrl= ' ' ToolTip= ' <%# DataBinder.Eval(Container.DataItem, "RsjTitle ") %> '>
</asp:HyperLink>
</TD>
<TD width= "80 " align= "center ">
<asp:HyperLink id= "Hyperlink2 " runat= "server " Text= '修改 ' NavigateUrl= ' <%# DataBinder.Eval(Container.DataItem, "id ", "Admin_News_Edit.aspx?ID={0} ")%> ' ToolTip= '修改 '>
</asp:HyperLink>
<asp:CheckBox id= "CheckBox1 " runat= "server " value= ' <%# DataBinder.Eval(Container.DataItem, "ID ") %> '> </asp:CheckBox>
<asp:Label id= "Label1 " runat= "server "> <%# DataBinder.Eval(Container.DataItem, "id ") %> </asp:Label>
</TD>
</TR>
</TABLE>
</ItemTemplate>
</asp:da