Last post Apr 12, 2007 07:25 AM by busyweb
Apr 10, 2007 04:41 AM|Swati Jain|LINK
How to throw the http403 forbidden error programmaticaly when I want to restrict the access to particular folder?
Apr 10, 2007 02:33 PM|keith.rull|LINK
My suggestion is to use the control authorization mechanism in the web.config to restrict folder access
Then declare a customError handler for 403 error:
Apr 11, 2007 02:01 AM|Raymond Wen - MSFT|LINK
Apr 12, 2007 07:25 AM|busyweb|LINK
adding another method. It's not for folder as you asked, but you can use for any other place you want to throw http exception at..
Throw New HttpException(403, "Nobody allowed this web site, except for me!, Warning....")