Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Response.redirect
Message
From
29/09/2000 12:01:17
 
 
To
27/09/2000 16:09:59
Christian Bellavance
Université du Québec à Hull
Hull, Quebec, Canada
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00421672
Message ID:
00422634
Views:
15
>Let say that I want to return to the login page with a parameter that specified to the login page to print an error message. In an asp page (that will never show up) I call
>
>Response.Redirect "login.asp?Err=" & ERR_NO_1
>
>in the browser adress field the user will see login.asp?err=1
>
>The question I am asking is: Is it possible with redirect method to call the login page with the parameter but the user will not see the parameter. (something like using hidden field in a html form).

Hi there,

Yes, it is possible using Session variables, but remember that session variables are only availble in server side script, not client side script.

Add some server side script on the login page to check for the error variable set in the server script of the asp page that finds the error. The simple response.redirect just reloads the login.asp page, but this time the error variable exists, and it can process it appropriately.
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform