Is it possible, if so how(!), to auto redirect a user that doesnt have access to a certain page?
I can see that in many cases this could be a complete pain for a user and confusing, but in my s开发者_如何学编程ituation it would be ideal.
Thx in advance!
Steve
Yes, this is possible.
You can do it by creating a custom HTTP Module, which can override the default access denied page.
Here's an example.
You can customise the accessdenied.aspx file in layouts folder.
Before customising it you need to take a copy.
with the writing of javascript (location.href=new file) code you can redirect user to other page.
精彩评论