Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can anyone tell me how to redirect a page to itself without loosing its values on the click of next button
Posted
Updated 31-Dec-09 0:34am
v2

You can keep a session value which will control the look and feel of your page. When the next button is clicked, you check the old value, set the session to "next" value and change the UI as well. When you reach the "last" value, either show a summary or redirect to some other page.

Hope this helps. More information can be provided if you specify your requirements and pre-requisites clearly.
 
Share this answer
 
If you set a session value and then response.redirect, the session will not set. You need to response.write a javascript redirect after setting the session.

Session("whatever") = "MyVal"

Response.Write("<script>window.location.href='mypage.aspx?myQuerystringValue=" & Request.QueryString("myQuerystringValue") & "'</script>")
 
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