checkbox error
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
foreach (GridViewRow rw in this.grdEmpSearch.Rows) { ChkBox =(CheckBox(rw.Cells[0].FindControl("chk")); if (ChkBox.Checked) { chkCount++; } } i wrote the above code to check whether the checkbox inside a grid is checked or not but although the checkbox is not checked the above code is returning checked true is all the cases....
-
foreach (GridViewRow rw in this.grdEmpSearch.Rows) { ChkBox =(CheckBox(rw.Cells[0].FindControl("chk")); if (ChkBox.Checked) { chkCount++; } } i wrote the above code to check whether the checkbox inside a grid is checked or not but although the checkbox is not checked the above code is returning checked true is all the cases....