foreach (GridViewRow rowI
tem in GridView1.Rows)
{
CheckBox chk = (CheckBox)(rowItem.Cells[7].FindControl("ch1"));
try
{
if (chk == null)
{
Label3.Text = "hai";
SqlConnection myConnection = new SqlConnection("Data Source=PCIMS051;Initial Catalog=unblockingwebsite;Integrated Security=True");
myConnection.Open();
SqlCommand myCommand = new SqlCommand("INSERT INTO twebsite_unblocking (Requested_Status) " + "Values ('2')", myConnection);
myCommand.ExecuteNonQuery();
myConnection.Close();
}
}
catch { }
}
Update Cancel Requested_ID Requested_by Action_taken Action_remark Action_taken_by Action_taken_date Request_Status
Label text changed but check box status not changed and not update to gridview