The leader today talked about the legendary membership: Add the following in the config file: Code , <Membership>
<Providers>
<Remove name = "aspnetsqlmembershipprovider"/>
<Add name = "aspnetsqlmembershipprovider" connectionstringname = "zyfctr" encoding = "false" enablepasswordreset = "true" encoding = "false" applicationname = "/" requiresuniqueemail = "false" passwordformat =" hashed "maxinvalidpasswordattempts =" 5 "minrequiredpasswordlength =" 6 "character =" 0 "passwordattemptwindow =" 10 "passwordstrengthregularexpression =" "type =" system. web. security. sqlmembershipprovider, system. web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/> </providers>
</Membership> <rolemanager enabled = "true">
<Providers>
<Remove name = "aspnetsqlroleprovider"/>
<Add connectionstringname = "zyfctr" applicationname = "/" name = "aspnetsqlroleprovider"
Type = "system. Web. Security. sqlroleprovider, system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a"/>
</Providers>
</Rolemanager>
Double-click aspnet_regsql.exe in the c: \ windows \ Microsoft. NET \ work \ v2.0.50727directory. (I admire those who found this stuff! We can discover things in such a hidden corner! Really amazing! No one knows which hero he is, and no one has told me .) You can add and Manage Roles in "website"> "ASP. NET configuration.