using VS 2010 and ASP.NET 4. The following code when executed times out and produces a ‘page not found error.’ Login.aspx does however exist.
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect("Login.aspx");
}
This “Login.aspx” relative path is saying that it should be within the same folder as the page you are directing from (the above code). If it indeed does exist and you’re getting this error, it is probably in another folder, perhaps a parent folder? If you give us more info on your file hierarchy, we could help you get the right path