开发者

ASP.net Membership Provider Website Administrator Tool

开发者 https://www.devze.com 2022-12-21 14:44 出处:网络
I have created the nece开发者_JS百科ssary tables (aspnet_User,....) in Sql server Management Studio 2005 in my Database named \"AuctionSite\". So instead of making one in App_Data folder ,i

I have created the nece开发者_JS百科ssary tables (aspnet_User,....) in Sql server Management Studio 2005 in my Database named "AuctionSite". So instead of making one in App_Data folder ,i want my website to point the database (AuctionSite) MembershipProvider, ProfileProvider,RoleProvider.

What is the way to achieve this or how to configure my website administrator to point that Database?


You will need to set some properties in web.config to point to the database but couple of other things will also need modification.

<membership>
     <providers>
          <add name="AspNetSqlMembershipProvider"
               type="System.Web.Security.SqlMembershipProvider,
                     System.Web, Version=2.0.0.0,
                     Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
               connectionStringName="LocalSqlServer"
               applicationName="/"             
     </providers> 
</membership> 

have a look at this tutorial

  • Creating the Membership Schema in SQL Server
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号