retrieve input parameter from previous previous page

newbeee

Member
Joined
Sep 27, 2007
Messages
19
Programming Experience
Beginner
Is there a way to retrieve input parameter from previous previous page. Yes, I mean the page before previous page.

Here's my 3 pages scenario:

Page1 - compose of a text box & a button
User enter a parameter - click on button to retrieve their info

Page2 - compose of a gridview whichl displays data by running a select sql statement behind the scene based on user input. Page 2 also compose of a link to page three where user could add a new record.

Page3 - compose of a form where user allow to add new record. Page 3 also compose of a button to go back to go back to page 2.

However, when going back to Page2, the input parameter from page1 doesn't exist anymore. Thus, can't display Page2.

Does anyone has any example or input on similar scenario?

Thanks in advance.
 
The easiest (and best) way is to store the value in a "Session".

Session("ParamaterValue") = TextBox1.Value

When you go to Page 2 or Page 3 or even back to page 1 the value will still exist.
 
Back
Top