Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Response.Redirect() in Page_Load
Message
De
09/06/2008 02:39:28
 
 
À
08/06/2008 22:39:55
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01322028
Message ID:
01322481
Vues:
9
>I cant get the Request.UrlReferrer in login.aspx. The Requiest.urlReferrer should be customer.aspx.
>
>Here is my code
>
>In my 1st webform : customer.aspx
>
>
>protected void Page_Load(object sender, EventArgs e)
>{
>if (User.Identity.IsAuthenticated == false)
>{
>Response.Redirect("login.aspx");
>//Response.Redirect("login.aspx");
>}
>}
>
>
>in 2nd page : login.aspx
>protected void Page_Load(object sender, EventArgs e)
>{
>if (Request.UrlReferrer != null) //<---- alway get null
>{
>
>Label1.Text = Request.UrlReferrer.ToString();
>}
>}

I don't see any Server.Transfer() there.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform