tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 65
Professional in C# and Visual Basic Part 65. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 12 Introduction to the Provider Model add name AspNetSql2005MembershipProvider type Version Culture neutral PublicKeyToken b03f5f7f11d50a3a connectionStringName LocalSql2005Server enablePasswordRetrieval false enablePasswordReset true requiresQuestionAndAnswer true applicationName requiresUniqueEmail false passwordFormat Hashed maxInvalidPasswordAttempts 5 minRequiredPasswordLength 7 minRequiredNonalphanumericCharacters 1 passwordAttemptWindow 10 passwordStrengthRegularExpression providers membership configuration Figure 12-8 597 Chapter 12 Introduction to the Provider Model With these changes in place the SQL Server 2005 instance is now one of the providers available for use with your applications. The name of this provider instance is AspNetSql2005MembershipProvider. You can see that this instance also uses the connection string of LocalSql2005Server which was defined in Listing 12-1. Pay attention to some important attribute declarations from Listing 12-2. The first is that the provider used by the membership system is defined via the defaultProvider attribute found in the main membership node. Using this attribute you can specify whether the provider is one of the built-in providers or whether it is a custom provider that you have built yourself or received from a third party. With the code from Listing 12-2 in place the membership provider now works with Microsoft SQL Server 2005 as shown in this example instead of the Microsoft SQL Server Express Edition files. Next you look at the providers that come built into the install starting with the membership system providers Membership Providers The membership system enables you to easily manage users in your applications. As with most of the systems provided in it features a series of server controls that interact with a defined provider to either retrieve or record information to and from the data store .
đang nạp các trang xem trước