再开帖问同样的问题,高手进来帮看看错误!
我写的代码如下:
aspx:
<table align= "center " border= "0 " cellpadding= "0 " cellspacing= "2 " style= "left: 0px;position: relative; top: 0px " width= "90% ">
<tr>
<td>
<asp:DataList id= "list1 " Runat= "server " Width= "100% ">
<ItemTemplate>
<table border= "0 " cellpadding= "0 " cellspacing= "0 " width= "100% ">
<tr class= "altbg2 " onmouseover= "this.className= 'altbg1 ' " onmouseout= "this.className= 'altbg2 ' " align= "center ">
<td width= "10% "> <asp:CheckBox ID= "chkSelect " runat= "server " /> </td>
<td width= "28% " align= "left "> <%# Eval( "chanpinmingcheng ") %> </td>
<td width= "13% "> <%# Eval( "fabushijian ") %> </td>
<td width= "8% "> <a href= 'zhanqu_edit.aspx?id= <%# Eval( "zh_id ") %> '> [ 编辑 ] </a> </td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID= "chkall " runat= "server " Text= "全选 " onclick= "chkSelect(); " />
<asp:ImageButton ID= "ImageButton1 " src= "images/shanchu.bmp " runat= "server " Style= "position: relative " OnClick= "ImageButton1_Click &