FormsAuthentication.RedirectFromLoginPage(txtuser.text, true);

解决方案 »

  1.   

    or
    FormsAuthentication.SetAuthCookie(txtuser.text, true);
    Response.Redirect....
      

  2.   

    因为你在web.config中加入了这一句:
    deny users="?"
    而又没有指定要验证具体的页面,所以所有的页面都被加入要验证的页面中了,只要是aspx页,都很验证。--------------------------------
    AspNetPager 免费分页控件4.0版发布,欢迎下载使用:http://www.webdiyer.com