好了
<authentication mode=
Forms >
<forms name=yourAuthCookie loginUrl= login aspx
protection=All path= / />
</authentication>
<authorization>
<deny users=? />
</authorization>
但是這樣會產生一個問題
<location path=
test aspx >
<systemweb>
<authorization>
<allow users=? />
</authorization>
</systemweb>
</location>
[
From:http://tw.wingwit.com/Article/program/net/201311/15686.html