All tricks in this blog are only for educational purpose. Learn these tricks only for your knowledge. Please donot try these to harm any one. We will not take any responsibility in any case. All softwares and tools on this site are here for private purposes only and If you want to use a software for business purpose, please purchase it. I do not host many of these tools. I Post links that I have found from numerous Search engines. I will not be responsible for any of harm you will do by using these tools.


Thursday, September 23, 2010

ASP.NET 2.0 Membership, Login Controls, and Role Management

ASP.NET 2.0 Membership, Login Controls,and Role Management Objectives After completing this lab, you will be better able to:? Build a login page around Login and Create User Wizard controls? Create an ASP.NET database for storing membership data, role data, and more? Use the Web Site Administration Tool to select membership and role providers? Use the Web Site Administration Tool to enable forms authentication and apply basic security settings? Programmatically converse with a master page from a content page? Use Login Status controls to display links for logging in and out? Change the logout action of a Login Status control? Enable the ASP.NET role management service? Create roles and assign users to roles? Create role-based access rules for your Web site Scenario Forms authentication is a popular means of securing Internet applications. In ASP.NET’s brand of forms authentication, you designate a login page for logging in unauthenticated users and use URL directives to specify which pages require logins and which ones do not. When an anonymous (that is,unauthenticated) user attempts to access a page that’s only available to authenticated users, ASP.NET automatically redirects them to the login page.ASP.NET 1.x simplified forms authentication by introducing declarative means for designating login pages and specifying authorization rules. ASP.NET 2.0further simplifies forms authentication by providing the following facilities:? A membership servicefor managing users and user credentials? Login controls for logging in users, creating new users, and more? A role management service for enacting role-based security In this lab, you’ll use all three to build a secure administrative interface for the My Comicsapplication. You’ll begin by creating a login page. Then you’ll secure the admin page you created in Lab 2 so that only authenticated users can access it, and add links to the master page for navigating to the admin page and logging in. Finally, you’ll use role-based security to tighten permissions on the admin page so that only administrators can access it. Tasks Detailed Steps 1. Enable database caching.a. Click Start | All Programs | Microsoft Visual Studio 2005 | Visual Studio Tools| Visual Studio 2005 Command Prompt.b. Navigate to the C:\MSLabs\ASP.NET\LabFiles\Database directory.c. Type Cache Setup.d. Close the Visual Studio 2005 Command Prompt. 2. Open the Web site. e. Click Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005.f. Click File | Open Web Site.g. Browse to C:\MSLabs\ASP.NET\Starter\\Lab4 and click Open. 3. Add a page to the Web site.a. In the Solution Explorer, right-click C:\..\Lab4 and click Add New Item.

ASP.NET 2.0 Membership, Login Controls, and Role Management.


Post a Comment