Use Web.Config to Block Access to Pages Based on UserType
Posted on 2007-10-07
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.