日期:2014-05-17 浏览次数:20512 次
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" > <Columns> <asp:TemplateField HeaderText=""> <ItemTemplate> <input id="cball" type="checkbox" class="cb1" onclick="GetSelectID(<%#Eval("StockName")%>);" title="点击选中"/> </ItemTemplate> </asp:TemplateField> <asp:BoundField HeaderText="A" DataField="StockName" /> <asp:BoundField HeaderText="B" DataField="GoodsNO" /> <asp:BoundField HeaderText="C" DataField="_Name" /> <asp:BoundField HeaderText="D" DataField="Spec" /> <asp:BoundField HeaderText="E" DataField="ProductBrand" /> <asp:BoundField HeaderText="F" DataField="Unit" /> </Columns> </asp:GridView> <asp:HiddenField runat="server" ID="hfIDList" Value=""/><%--放一个隐藏控件--%>
------解决方案--------------------
js+ 隐藏文本域
------解决方案--------------------