General information
Category:
Coding, syntax and commands
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();
}
}
Thanks.
Best Regards,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only