I am creating a gridView that allows adding new rows by adding the controls necessary for the insert into the FooterTemplate, but when the Ob
gridView
FooterTemplate
Ob
You should use DataKeyNames in your GridView:
And then retrieve it on your code: GridView1.DataKeys[0].Value.ToString()
GridView1.DataKeys[0].Value.ToString()
Where "0" is the number of the row you want to get the "FooID"