User-friendly error page for users without permission - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

User-friendly error page for users without permission

  • User-friendly error page for users without permission
  • 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!
  • 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