Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Response.redirect
Message
 
À
27/09/2000 16:09:59
Christian Bellavance
Université du Québec à Hull
Hull, Québec, Canada
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00421672
Message ID:
00422634
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform