开发者

ASP.NET membership tables for ASP.NET MVC3

开发者 https://www.devze.com 2023-03-07 05:16 出处:网络
I have a ASP.NET application running on the server using ASP.NET membership provider. I would like to use the same database for my ASP.NET MVC3 appl开发者_如何转开发ication.

I have a ASP.NET application running on the server using ASP.NET membership provider. I would like to use the same database for my ASP.NET MVC3 appl开发者_如何转开发ication.

Do I only need to change the connection string in the Web.Config file? I tried that but no luck.


This depends on how is implemented your membership provider. You might have to create your own implementation of memmbership provider for the both applications to share the same data tables.

check this guide how to do this: http://www.danharman.net/2011/06/23/asp-net-mvc-3-custom-membership-provider-with-repository-injection/

0

精彩评论

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