解释到前台的html后成了:
<table cellspacing="0" rules="all" border="1" id="myDataGrid" style="height:100%;width:100%;border-collapse:collapse;"> <tr class="list_1"> <td class="disTd"> </td> <td class="list_1" align="Center">选择<input type='checkbox' id='' onclick='doSelectAll();' title='全选'></td> <td class="list_1" align="Center">颜色名称</td> <td class="list_1" align="Center">颜色HTML编码</td> </tr> <tr class="list_lan"> <td class="disTd">16</td> <td class="list_td" align="Center"> <input id="myDataGrid__ctl2_CheckBox1" type="checkbox" name="myDataGrid:_ctl2:CheckBox1" /></td> <td class="list_td" align="Center"><a href="InfoCOLOR.aspx?id=16&flag=0">213`</a></td> <td class="list_td" align="Center">123123</td> </tr> </table> 我们可以看到DataGrid 控件变成了Table标签,id不变,而原来的 <asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox> 变成了 |