Click here to Skip to main content
16,012,223 members

Comments by Member 9630032 (Top 3 by date)

Member 9630032 27-Nov-12 22:45pm View    
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 sql
Member 9630032 27-Nov-12 1:57am View    
insertion into sql failed
Member 9630032 26-Nov-12 22:48pm View    
Thanks