我想在web.config中使用授权来阻止对经过身份验证的用户访问SignUp.aspx.用户无法访问它,例如他们的角色是administrator和Guest.
- <location path="SignUp.aspx">
- <system.web>
- <authorization>
- <allow users="?"/>
- </authorization>
- </system.web>
- </location>
- <authentication mode="Forms">
- <forms name="AuthCookie" loginUrl="Login.aspx" timeout="60"
- defaultUrl="Index.aspx"/>
- </authentication>
- <authorization>
- <deny users="?"/>
- </authorization>