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

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.
davidcahanAsked:
Who is Participating?
 
orbulatCommented:
here is an example

http://www.apt43.com/Notebook/Article/e/e34.aspx

eventually u can control the role access on guest / member pages
0
 
orbulatCommented:
u mean using membership for access control?  here is an article, but a little bit long, hope this helps

http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
0
 
davidcahanAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.