CustomError not working properly
Posted
by IrfanRaza
on Stack Overflow
See other posts from Stack Overflow
or by IrfanRaza
Published on 2010-04-20T18:19:50Z
Indexed on
2010/04/20
18:23 UTC
Read the original article
Hit count: 202
Hello friends,
I am using following setting for customError.
< customErrors mode="On" defaultRedirect="GenericErrorPage.aspx" > < error statusCode="403" redirect="NoAccess.aspx" /> < error statusCode="404" redirect="FileNotFound.aspx" /> < /customErrors>
I have a folder "Admin" having access to administrators role. When someone other than administrators tries to access the pages inside admin folder, it is redirected to login page. My expectation is to display "NoAccess.aspx".
Whats wrong with this code? Or is there other meaning to statusCode=403.
Could someone provide help on this.
Thanks for sharing your valuable time.
© Stack Overflow or respective owner