How Do I?

[How Do I:] Use Roles to Segment Functionality in an ASP.NET Web Site

By Chris Pels|32 minutes|
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 element to apply authorization settings to a specific location such as a page.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on May 29, 2008

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England