开发者

How to store users data in external database

I've created database wih Application Services objects as described on official website. 开发者_JS百科But when I want to add new user ( using Membership.AddUSer(...)) default local ASPNETDB.mdf database is created and user data is stored there. I've added connection string to webconfig file and configured database as shown in mentioned tutorial, but it's still not working. Where I can configure membership provider to store data in my production database?

Thanks in advance.


Look at membership section in web.config and set parameter connectionStringName for AspNetSqlMembershipProvider to name of your connection string name.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜