Click here to Skip to main content
16,018,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have developed a web application witch have some conditions, according the conditions some pages are skipped but when i click on back button then it comes on the last page but not on the right page according the condition for example :

page1
page2
page3
page4

page2 have 2 condition according first condition the next page is page3 and then page4 and according to second condition next page is page4 and but form the back button on the page4 how would i find that it is redirected from page2 or page3 so that if user want to go to the back page then the first back page will be page 3 weather according to user's view the last page is page 3 or page2.

Any help will be appreciated
Thanks
Posted

1 solution

hi tnitin,

your problem can be solved by using session variable.
set this session variable while redirecting (i.e from page 2 or page 3 in your case).

so while doing BACK operation you can easily identify the previous page.

I hope this will be useful for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900