hello, i have one gridview on that i take one checkbox named as select all when i clicked on that all checkboxes should be checked but when i deselected the select all checkbox then their should be unselected chechbox with others. can anybody tell me in javascript function how can i do it? give me code please...
this is the checkbox on the gridview as per your suggestion: <asp:TemplateField HeaderText="Select all"> <ItemTemplate> <asp:CheckBox ID="chkselectchild" runat="server" /> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" /> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" /> <HeaderTemplate> <asp:CheckBox ID="chkselectall" runat="server" Text="Select All" /> </HeaderTemplate> </asp:TemplateField>