Allow deny users and roles web.config

Posted on: Fri Jan 22 10:15:39 -0800 2010. Updated on: Fri Jan 22 10:22:52 -0800 2010.
Category: DotNet

To limit users and roles to different folders it is pretty easy. First make sure you have your membership and role providers configured and working ok. Then edit the web.config. Microsoft has a perfect article here: deny elements for authorization

// this example will limit access to folder Admin to only admin role users.
// note the order is important, if not won't work.

	
		
			
			
		
	

Comments:

Add a Comment:

simple_captcha.jpg
(human authentication)


Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.