I have been struggling with this all week end ....
I am trying to implement adding a new record using the Gridview footer.
I have an example that works finethat I got from http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx.
My situation is a little different .. as I am using master page and the Gridview is in a page derived from the master page.
I have tried:
Dim txtNewName As TextBox = DirectCast(GridView1.FooterRow.FindControl("NewName"), TextBox)
"NewName" is the ID of the textbox in the footer of the Gridview.
When I try referencing ... txtNewName.Text ... it returns a null value.
There must be some trick to referencing this .Text value when using the Gridview that is within a Content Place Holder that results when using a page that was created using a master page.
Thanks in advance fo any possible help with this problem ...