html:
<input id="Checkbox1" type="checkbox" onclick="GetAllCheckBox(this)" />
<asp:CheckBox ID="chkptno" runat="server" />
js:
<script language="javascript" type="text/javascript">
function GetAllCheckBox(c) {
var iterms = document.getElementsByTagName("input");
for (i = 0; i < iterms.length; i++) {
var id = iterms[i].id.toString();
if (id.indexOf("gvwList_chkptno_") != -1) {
iterms[i].checked = c.checked;
}
}
}
</script>