Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programme a back button

Status
Not open for further replies.

choudhmh

Programmer
Aug 9, 2004
34
GB
A web browser with a back button neesd to be inserted. I've added the back button, but now when a redirect the button, i want all the values that was inserted in the form to retrive. At the moment it redirecty to the last browser, but none of the values which were inserted on the form satys. The values on the form are inserted on the database, therefore values from the database must be retrived.
This is the code:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Response.Redirect("signup_1.aspx?sid=" & Signup.BoilerCoverSignupID)

End Sub
what other coding do i need to add.
Thanks
 
The response re-direct will need to return the page back to page 1, with all the data that were inserted before. The button i've stated above is in page 2.
 
so either page1 needs to load the information, page2 needs to send the information, or all of the information must be stored in session variables and loaded when the page is visited.

I do not beleive that using response.redirect will work the same as hitting "Back" in a browser, where all Post (err is it Get?) data is populated. There is how ever a Java script command that will work the same as hitting "Back".

-Rick

----------------------
 
Hi ThatRickGuy,
I dont think you're understanding the concept properly. Its a web form intergrated with a database, e.g. a memebers login form. I insert something on the form on page 1 then press the submit buuton, it adds the value of each form on that page to the database(happens in the background) and then it automatically direct me to page 2. Now in page 2 theres more form e.g. personal address details. But while filling out page2 i rememeber making a mistake on form1 page1. I click the back cutton, which would load web page1. But on that page i want to retrive all the information i inserted before inorder to identify what mistake i made (if any mistake were made). I want the SID ID to be used to retrive all the information from the database back onto form1 page1 so its easier for me to understand where the mistake was made.

I now need someone to help me write the script so when the back button is pressed it will retrive all the fileds from the database to its correct textbox on the form.

Hope this is more understanding.
Thank You
 
Set up page one so that if the SID is passed, it will query the database and populate the fields. Or, look into the difference between Get and Post form actions, you may be able to get your desired results from them.

-Rick

----------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top