第二种方式是:上面的写错了!
<system.web>
<authentication mode="Forms">
<forms name="myJXC" loginUrl="login.aspx" protection="All" path="/" />
</authentication> <authorization>
<deny users="?" />
</authorization>
</system.web>
<system.web>
<authentication mode="Forms">
<forms name="myJXC" loginUrl="login.aspx" protection="All" path="/" />
</authentication> <authorization>
<deny users="?" />
</authorization>
</system.web>
FormsAuthentication.RedirectFromLoginPage("ftg", true);
的时候每个页面都可以访问了~!但是注掉后,每个页面还是可以访问!这应该怎么办?