Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Response.Redirect() in Page_Load
Message
From
27/06/2008 11:57:39
 
 
To
09/06/2008 22:02:50
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01322028
Message ID:
01327280
Views:
11
Hi,

Been away so you may have resolved this by now. If not then can you confirm that Request.UrlReferrer is not null in the page where you call Server.Transfer. The Request object is preserved so the property should be the same on both pages.

Regards,
Viv

>Sorry type too fast, type 2 line of response.redirect, actaclly 1 line should be server.transfer(login.aspx");
>
>Response.Redirect("login.aspx");<--------------------------Server.Transfer("login.aspx");
>//Response.Redirect("login.aspx");
>
>
>
>
>protected void Page_Load(object sender, EventArgs e)
>{
>if (User.Identity.IsAuthenticated == false)
>{
> Server.Transfer("login.aspx"); <--------------- here....
>//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();
>}
>}
Previous
Reply
Map
View

Click here to load this message in the networking platform