We help IT Professionals succeed at work.

Use Web.Config to Block Access to Pages Based on UserType

davidcahan asked
Last Modified: 2010-07-27
I have two user types.  Both are being returned through a web service.  If the UserType = "USR", i have already disabled and hidden all links and buttons that could lead that usertype into areas of the website they do not have access to.  However, I'd like to add an additional layer of security by out right blocking of those pages in the web.config file.  I know how to block access to pages but I don't know how to do it based on a UserType, and I certainly do not know how to do it based on a UserType from a web service.
Watch Question

u mean using membership for access control?  here is an article, but a little bit long, hope this helps



i mean access to pages based on a UserType.  So if membership can be defined using any custom userType then yes.

Also, I know there has to be a simpler comment then go read this 10 part instruction guide.  I just want to see a simple example of doing what i'm talking about.
Unlock this solution and get a sample of our free trial.
(No credit card required)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.