+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / User-friendly error page for users without permission

User-friendly error page for users without permission

2 posts, 0 answered
  1. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    10 Mar 2011
    Link to this post
    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!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Mar 2011
    Link to this post
    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
2 posts, 0 answered