PreviousPage, posting forms

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.
 
K

KJ

I think there is the previouspagetype attribute that you have to add
to your @ Page directive
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top