Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<script type="text/javascript">
     function chkAllCheckbox(obj) {
         var gv = document.getElementById('<%=gvSchoolDisrict.ClientID %>');
         for (var i = 0; i < gv.all.length; i++) {
             var node = gv.all[i];
             node.checked = obj.checked;
         }
     }
</script>


I am using this code to check all the checkboxes but I want do it with out using server tag in script. Can any one please help me in this regard!
Posted
Comments
Mahesh Bailwal 26-Jun-13 2:18am    
Why you want to remove serer tag.
Can you post the rendered html of that GridView in browser?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900