i have a Field named KitID i am using it as hiddenfield like below
but while saving i am getting the error,
while saving i am using the below code:
string K = GridView1.Rows[i].Cells[0].FindControl("KitID");
cmddtls.Parameters.Add(
is der any other way to save it?
Pls reply!
regards,
aamir
"@KitId", SqlDbType.Int).Value = int.Parse(KitId);
Jignesh TrivediPosted Jun 28, 2012, 1:20 AM
I tried my self, it working fine for me.
On aspx page..
On save button.
foreach (GridViewRow row in GridView1.Rows)
{
HiddenField hd = (HiddenField)row.FindControl("hdtest");
}
hope this will help you.
Posted Jun 27, 2012, 7:49 AM