I am writing an asp.net application with multiple panels on a single .aspx page and are using a Master Page. Basically the user will fill out a form and a different panel will show up depending on which items they select. Ultimately when
all the proper information is collected I send it to a results page. It works fine except for when a user hits
Back button. When the user hits the back button the get a page expired message. I would prefer it to retain the history so users could go back and make changes and resubmit as needed.
How can I preserve the history using panels, including when going back from the results.aspx page?
Keep in mind these are regular panels and not update panels. Nor or I using Ajax. However, I am open to using them if that is the recommended method. I did play around the Wizard control but found it challenging to customize.
According to your description, when you submit form page, because not save the submitted data, So can get the data to show. you need store forms values in session and when you back to this page, can get data from session and show !
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
13 Posts
How to preserve history using Panels?
Dec 15, 2016 04:28 PM|ManOfManyHats|LINK
I am writing an asp.net application with multiple panels on a single .aspx page and are using a Master Page. Basically the user will fill out a form and a different panel will show up depending on which items they select. Ultimately when all the proper information is collected I send it to a results page. It works fine except for when a user hits Back button. When the user hits the back button the get a page expired message. I would prefer it to retain the history so users could go back and make changes and resubmit as needed.
How can I preserve the history using panels, including when going back from the results.aspx page?
Keep in mind these are regular panels and not update panels. Nor or I using Ajax. However, I am open to using them if that is the recommended method. I did play around the Wizard control but found it challenging to customize.
Thanks
Contributor
6730 Points
2715 Posts
Re: How to preserve history using Panels?
Dec 16, 2016 09:54 AM|Eric Du|LINK
Hi ManOfManyHats,
According to your description, when you submit form page, because not save the submitted data, So can get the data to show. you need store forms values in session and when you back to this page, can get data from session and show !
Save data in session state:
https://msdn.microsoft.com/en-us/library/6ad7zeeb.aspx
Get data from session state:
https://msdn.microsoft.com/en-us/library/03sekbw5.aspx
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.