--- title: "[How Do I:] Use Roles to Segment Functionality in an ASP.NET Web Site | Microsoft Docs" author: rick-anderson description: "In this video Chris Pels will show how to maximize the use of roles in an ASP.NET web site after setting up ASP.NET Membership. First, learn how to setup rol..." ms.author: aspnetcontent manager: wpickett ms.date: 05/29/2008 ms.topic: article ms.assetid: 9ac277a9-2149-4a51-b61b-a44ad0535267 ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/how-do-i/how-do-i-use-roles-to-segment-functionality-in-an-aspnet-web-site msc.type: video --- [How Do I:] Use Roles to Segment Functionality in an ASP.NET Web Site ==================== by [Chris Pels](https://twitter.com/chrispels) In this video Chris Pels will show how to maximize the use of roles in an ASP.NET web site after setting up ASP.NET Membership. First, learn how to setup roles using the built-in role manager in Visual Studio .NET. See how to define roles based upon the business needs associated with the web site. Once the roles are setup learn how to structure your web site from a folder and page hierarchy perspective to most efficiently accommodate the roles and business needs. As part of this see how to use the roles attribute in defining authorization in the web.config file associated with each folder. Also, see how to use the <location> element to apply authorization settings to a specific location such as a page. [▶ Watch video (32 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-use-roles-to-segment-functionality-in-an-aspnet-web-site)