protected void btnReq_Click(object sender, EventArgs e) { foreach(GridViewRow dg in gvw_tdetails.Rows) { HiddenField hd = dg.Cells[6].FindControl("traID") as HiddenField; CheckBox chkBox = (CheckBox)dg.FindControl("checkbox"); If (chkBox.Checked && chkBox!=null) { string tid = ((Label)dg.Cells[0].FindControl("lblTempID")).Text; string txid = hd; InsertRecord(tid,txid); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)