Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Session variables and back button

Author  Topic 

JJ297
Aged Yak Warrior

940 Posts

Posted - 2009-10-16 : 12:12:42
How do I use session variable to keep the users previous url in that variable so when they click on the back button they go back to where they came from?

If I'm on Testa.aspx and then go to Testb.aspx what would I put in the button click event in testb.aspx to get back to testa?

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2009-10-20 : 07:38:58
<INPUT type="button" value="Click here to go back" onClick="history.back()">
Go to Top of Page
   

- Advertisement -