ashish dhingra

ashish dhingra

  • NA
  • 11
  • 3.9k

check box in a grid view

Jun 6 2012 3:11 AM
I have a checkbox inside a grid view.When i click on save button,i check at code behind which check boxes are checked to save record in db.butCheck box.checked property is always false.

foreach (GridViewRow row in GridView1.Rows)
{
CheckBox chbx = (CheckBox)row.FindControl("chk1");
if (chbx.Checked)
{
}}
However it works fine in Mozilla but not in IE

Answers (4)