Last post May 04, 2016 02:44 PM by Frank369
May 02, 2016 07:00 PM|Frank369|LINK
Apologies in advance, I am very new to ASP.Net and so this question maybe trivial, however I have searched high and low and can not seem to find the solution...
so my application has 2 pages...
1. A Form - (Users input values into this form via txtBoxs, radioButtons etc..)
2. Guidance - (the user can refer to this page if they need help with how to answer the questions on the first page)
PROBLEM - when ever a user selects the guidance page for assistance (via the NavigationMenu built into the master page (Site.master)) and then selects the Form page to go back to populating the form they loose all the data they had previously entered, how
do I stop this from happening?
I think I have enables viewstatemode on all fields within my first page (Form) however i'm still having this issue, any help would be most appreciated.
Thanks in advanced
May 02, 2016 07:43 PM|Janshair Khan|LINK
The problem you are confronting can be either solve by:
May 02, 2016 08:14 PM|Frank369|LINK
I did originally think about your recommended option, however the notes I need to display are quite extensive, and when I put a label in to display this data the label pushed all of my other txtboxes out of place - is there an easy way to have these labels
on top of existing txtboxes(so my current txtboxes stay in place) but are only visible when receiving focus?
May 03, 2016 02:44 AM|Yohann Lu|LINK
As far as I know, when the page postpack, all the controls are initialized. So, you will lose all the data. I suggest you can try the following suggestions.
1: Use Popup Window in ASP.Net
If use need help with how to answer the questions on the first page, you can pop up a window to them.
You can refer the following links.
2: Use Session to store the data that use had previously entered. When go back to populating the form and load the data again.
Exploring Session in ASP.NET:
May 04, 2016 06:47 AM|DholakiyaAnkit|LINK
You don't really need to to save the state,
As few notes can be implemented to achieve your scenario
May 04, 2016 02:44 PM|Frank369|LINK
I went with labels that popped up when in focus.