在浏览器直接输入页面B的URL,然后导向到登陆页面,登陆后跳转到页面B,而不是我指定的页面A
为什么的呢?
 protected void Login1_LoggedIn(object sender, EventArgs e)
    {       
            Session["User"] = Login1.UserName.Trim();
            System.Web.Security.FormsAuthentication.SetAuthCookie(Login1.UserName.Trim(), false);
            Response.Redirect("~/Default.aspx",false);
    }
<configuration>
<system.web>
<authorization>
   <allow roles="Administrator" />
   <allow roles="Salesman" />
   <deny users="?" />
  </authorization>
    <authentication mode="Forms" >
      <forms loginUrl="login.aspx" name=".ASPXAUTH" timeout="300" defaultUrl="Default.aspx"/>
    </authentication>
  <roleManager enabled="true" />
  <compilation debug="true" targetFramework="4.0"/>
  </system.web>
</configuration>