Click here to Skip to main content
15,909,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 4 forms to be filled in subsequent pages and 2 buttons previous and next. When user clicks previous button it should go to previous page along with the values entered. i tried javascript code history.back & Request.UrlReferrer.ToString(), it works only for the previous page.

The problem is when user is in 4th page, previous button redirects to 3rd page but when
user again clicks the previous button in 3rd page, it redirects to 4th page but i want the page redirection to 2nd form. Help me....
Also i need code for retaining the values.
Posted
Updated 7-Apr-13 20:32pm
v2
Comments
Deependra Khangarot 8-Apr-13 2:39am    
You can use Multiview control or Wizard control to achieve desired functionality.

1 solution

Hi,
You can achieve this using div concept and little bit of css.
for example, take 3 divs like div1,div2,div3.Each div contains your page1,page2 and page3 info.
Take 2 buttons previous and next.Based on the click show required div and hide he remaining divs.Hope it is useful.
 
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