J
jeroen.bolle
I'm trying to pass variables between pages using the post method. I
have access to the the page where I've posted my form, but all the
objects are empty...
An extract of the code:
If Not (Page.PreviousPage Is Nothing) Then
Label1.Text = "Form sent"
If Not (Page.IsCrossPagePostBack) Then
If IsNothing(PreviousPage.FindControl("txtVertrek"))
Then
Label1.Text &= ". Object = null"
End If
End If
Else
Label1.Text = "Form not sent"
End If
I'm not sure what I'm doing wrong, some googling just confirmed my
code.
have access to the the page where I've posted my form, but all the
objects are empty...
An extract of the code:
If Not (Page.PreviousPage Is Nothing) Then
Label1.Text = "Form sent"
If Not (Page.IsCrossPagePostBack) Then
If IsNothing(PreviousPage.FindControl("txtVertrek"))
Then
Label1.Text &= ". Object = null"
End If
End If
Else
Label1.Text = "Form not sent"
End If
I'm not sure what I'm doing wrong, some googling just confirmed my
code.