How to show a Access Denied Page when User is not in Role?

  • Thread starter Malik Asif Joyia
  • Start date
M

Malik Asif Joyia

Hello
I have Implemented the Forms Based Authentication and manageing Roles on the
Directories.
If a User is not in Role on some Sub directory of my Web-Application, How
can i show the Access Denied Custom Designed Page......
At this time if a user is logon to my web application and want to access
some directory by giving its path in URL it redirects it to logon page...I
want to avoid this thing as user is allready login. and Application should
show the Access Denied Message.
i have defined

<authorization>
<deny roles="1" />
</authorization>


in the web.config file of the sub directory

Thanks
 
S

Shaun

Did you find a solution to this problem - I have just run into the same thing today.

Thanks

Shaun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top