Search code examples
asp.netaspnetdb

ASP .Net membership and membership class


Couple of questions:

I have a database i created under the app_data folder. Is there anyway to associate this database with an EXISTING aspnetdb which is also under the same folder? If so could anyone guide me?

If not then what would be the best way to create my own database under the APP_CODE folder which would also utilise asp .net membership? By that i mean i could check for username and roles theyre in, in code (If User.IsinRole("........") etc and use the icon inside the project to open the membership page and add/modify/delete users too?

Thanks


Solution

  • All you need to do is change the connection string to point to the same database for both. Of course, you will have to copy the schema from one to the other, and any data you need.