ASP.NET Tutorial/Configuration/membership

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Modifying the membership provider in web.config

   <source lang="csharp">

<configuration>

  <system.web>
   
     <membership>
        <providers>
           <clear />
           <add name="AspNetSqlMembershipProvider"
                type="System.Web.Security.SqlMembershipProvider, System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                connectionStringName="LocalSqlServer"
                requiresQuestionAndAnswer="false"
                requiresUniqueEmail="true"
                passwordFormat="Hashed"
                minRequiredNonalphanumericCharacters="0"
                minRequiredPasswordLength="3" />
        </providers>
     </membership>
   
  </system.web>

</configuration></source>