| 
			 
			Establish roles for an application.
			Assign users to roles.
			Create rules (permissions) that selectively grant or deny access to pages for different rules.
			Programmatically determine whether a user is in a particular role and which roles the current user is in.
			 
			
				Configuring a Web Site, Membership, and Roles 
				Before you work with ASP.NET roles, you must have a Web site available, and configure the site to enable membership and set up user roles. If you have completed the topic Walkthrough: Creating a Web Site with Membership and User Login (Visual Studio), you can use the Web site that you configured in that walkthrough.
				If you do not already have a Web site available, use the following procedure to create one. Otherwise, go to the next section "Creating Folders for Member-Only Pages."
				To create a local IIS Web site
				Open Visual Studio.
				On the File menu, click New Web Site.
				The New Web Site dialog box appears.
				Under Visual Studio installed templates, select ASP.NET Web Site.
				In the Location list box, select File System.
				Click Browse, and then select a directory for your application, such as C:\RolesWebSite.
				In the Languages box, click the programming language that you prefer to work in.
				The programming language you choose will be the default for your Web site, but you can set the programming languages for each page individually.
				Click OK in the New Web Site dialog box.
				Visual Web Developer creates the Web site and a new page named Default.aspx.
			 
			
			Always make sure you test the display of your Web
			pages on different monitors with lower resolutions, if you are one of those developers with a sophisticated	monitor (1600x1200?).
			 
			
			When designing the layout of Web pages
			is to let a section of each page  be of variable size to fit the
			size of a large as well as  small resolution monitor. 
			 
			
			So look at  our
			 browser
			statistics if you want to see the trends in monitor development. 
			 
			 |