Its something new every day. Today Response.Redirect won’t work. Now I have written this code more times then I am willing to count and it always worked. Example:
private void btMemberLogin_Click(object sender, System.EventArgs e)
{Response.Redirect(“login.aspx);
}
What is wrong … well this code will not work if Page.Smartnavigation is true. Found this out from Dave who stated “… response.redirect() does not work if Page.Smartnavigation is true. Make it False the line prior to the redirect”.
The following code works.
private void btMemberLogin_Click(object sender, System.EventArgs e)
{Page.Smartnavigation =true;
Response.Redirect(“login.aspx);}