User-friendly error page for users without permission

Posted by Community Admin on 05-Aug-2018 22:45

User-friendly error page for users without permission

All Replies

Posted by Community Admin on 10-Mar-2011 00:00

Hello,
How do I set SF up so that when a user who does not have permission to view a page gets a message such as "You are not a member and do not have permission to view this page" etc..

Basically I'm looking for a way to make my own custom error page for those without proper credentials.

Thanks!

Posted by Community Admin on 11-Mar-2011 00:00

Hi Amanda,

You can add some custom logic in Global.asax, Application_Error and there you can catch the 404 response. In this case you can make response.redirect and send the user to another page. Note that the response is 404, not 403, so you cannot determine whether the user does not have permissions to view this page or it just does not exist.

Best wishes,
Ivan Dimitrov
the Telerik team

This thread is closed