In the previous sample we used C# code to select all the checkboxes placed inside the GridView control. In this sample we have used the JavaScript code to select all the checkboxes without sending the request to the page postback. JavaScript code to select all the checkboxes works much faster than the server end C# code that loop over each row of GridView control.