Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Kibsgård 62 posts 73 karma points
    Jan 19, 2011 @ 20:53
    Simon Kibsgård
    0

    Setting 401 on No Rights Page / Error Page refered to in Public Access settings

    Hi, I have restricted a page with "Public Access" and referred to a node a the "Error Page" (or "noRightsPage" as it's called in the acess.config). I would like to give the browser a 401 HTTP Response, but I don't know how to accomplish this with master pages. On which event do I need to set the

    Response.StatusCode = 401;
    Response.StatusDescription = "Unauthorized";

    Page.Load, doesn't seem to work.

    ...Or am I way off on how to do this?

    Thanks! / Simon K

Please Sign in or register to post replies

Write your reply to:

Draft