cross page posting using detailsview
Posted on 2007-07-30
I'd like some pointers with the following please?
I have tried to crosspage post from a source page which has a detailsview with a "textbox template" field with no success.
Here is the code that i have attempted on the target page - it compiles ok, but what have i missed out?
Thanks for your help..
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not Page.PreviousPage Is Nothing Then
Dim SourceTextBox As TextBox
SourceTextBox = CType(Page.PreviousPage.FindControl("TextBox1"), DetailsView).DataItem
If Not SourceTextBox Is Nothing Then
TextBox1.Text = SourceTextBox.Text