I am doing server side validation of the data entered by the user. My intention is that if a field X is blank, they are redirected to the previous page. However, when i do so, any data entered by the user in other form controls is lost. Is there a way i can send the user back to the previous page without losing data? Yes i can do this with Javascript. But i have to do the same stuff on the server side too.
thank you for your continued guidance.
MICAH
Reply from Richard Rost:
This is a tough one. What I do is read all of their responses into session variables, and then use those session variables as the default values for the fields on the previous form. So when they submit first name, it goes into Session("FirstName") then use that as the default value for the first name field on the previous form. If you redirect them back there, the data will show up.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Active Server Pages Forum.