kalahaine:
This site contains 11 roles, and the access rules are well defined.
.......
can give me a tip on how to redirect the users that have been denied an access to some pages in another page than the login page.
Hi
User will be redirect to login page so that they can re-input an account and after a successful login, it uses ReturnURL to navigate from the login page.
If you predict they don't want to re-input an account but prefer to be sent to the index of the site, I think you can use
Response.Redirect("index.html")
in Page_Load event of login page.
Best Regards
XiaoYong Dai
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.