Click here to Skip to main content
15,917,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have some controls (dropdownlists and textboxs) in my website's header and I have put that controls in my master page because I want them to be visible in all pages. The problem is that when a user changes the page, the controls data refreshes and I loose the data that have been selected by the user. I want that when a user changes a web page, the data (for example the selected index of comboboxes and data in textboxes) be stable and not dependant to the page that user is working on.
Thanks a lot in advance!
Good Luck!
Posted

1 solution

Before posting to a new page you can store the selected values of the dropdown and text of the text box in session. At the time of page load of new page read the values from session and set the values back to the control. At the time of storing the values to the session you can check that if the same value already exist then don't overwrite the value.
 
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