J
Jessica Loriena
I'm trying to write a simple "register form / validate and store in
database / show welcome screen" application with ASP.Net. With
conventional ASP, I used Session variables and it went something like
this:
*****
form.asp
- <form action="ValidateAndStore.asp" method="post">
*****
ValidateAndStore.asp
- Pass form values into Session variables.
- If validation OK Then
Store in database
redirect("welcome.asp")
Else
redirect("form.asp?error=ValidateError")
End If
*****
welcome.asp
- Show form values using previously stored Session variables
I know there are no need for Session variables in ASP.Net forms
because the state is preserved. All tutorials and books I've read so
far show how to post ASP.Net forms to itself (post back), but how do I
validate and redirect to *another* page without losing the form
variables??? Do I have to use Session variables again even with
ASP.Net forms??
database / show welcome screen" application with ASP.Net. With
conventional ASP, I used Session variables and it went something like
this:
*****
form.asp
- <form action="ValidateAndStore.asp" method="post">
*****
ValidateAndStore.asp
- Pass form values into Session variables.
- If validation OK Then
Store in database
redirect("welcome.asp")
Else
redirect("form.asp?error=ValidateError")
End If
*****
welcome.asp
- Show form values using previously stored Session variables
I know there are no need for Session variables in ASP.Net forms
because the state is preserved. All tutorials and books I've read so
far show how to post ASP.Net forms to itself (post back), but how do I
validate and redirect to *another* page without losing the form
variables??? Do I have to use Session variables again even with
ASP.Net forms??