为了账号安全,请及时绑定邮箱和手机立即绑定

用JavaScript获取GridView的ItemTemplate的CheckBox全选或全部取消?

用JavaScript获取GridView的ItemTemplate的CheckBox全选或全部取消?

蓝山帝景 2018-12-06 14:41:50
 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="770px"                        OnDataBound="GridView1_DataBound">                        <Columns>                            <asp:TemplateField HeaderText="选择">                                <EditItemTemplate>                                    <asp:CheckBox ID="CheckBox1" runat="server" />                                </EditItemTemplate>                                <HeaderTemplate>                                    <input type="checkbox" id="checkbox_1" onclick="Check()" />全选                                </HeaderTemplate>                                <ItemTemplate>                                    <asp:CheckBox ID="CB_Item" runat="server" />                                </ItemTemplate>                                <ItemStyle HorizontalAlign="Center" />                            </asp:TemplateField>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 459 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信