Hi, I have a manual (i.e., bound to my own DataTable, not an actual data source like a database) DetailsView (with DefaultMode = Edit) on my ASP.NET web form, and I have set up several fields in it. So elsewhere I have a link button, and when I push it I want to
1) check the data for validity
2) save it to the actual database
3) navigate to a different page
Well, it seems like I can't get the current text typed into a text box, the code below seems to return what was *initially* in the DetailsView (or my "bound" DataTable).
Thanks very much.
How can I get the current text typed into the text box when the user clicks my LinkButton? Is there some sort of Update method that shoots the DetailsView back to my DataTable? Thanks...
Dim plan_num As String = CType(Me.DetailsViewPlan.Rows(0).Cells(1).Controls(0), TextBox).Text