天天看點

customErrors

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

            <error statusCode="403" redirect="NoAccess.htm" />

            <error statusCode="404" redirect="FileNotFound.htm" />

        </customErrors>

另外,你可以使用Context.User.Identity.Name取回驗證時存的使用者名。

繼續閱讀