Author: kkfrost | Posted on: 10/26/2009 7:39:08 PM | Views : 259

I have a scenario which I need to use the asp.net membership for security.  However, the caveat each customer that uses the app must have it's on separate sql database.  So imagine I have a company named acme.  They'll have a database called acme_config.  This database will contain all the membership, profile, role tables etc.
Then say there is a company called xyz.  They'll have xyz_config database that contains it's membership tables etc.
In this app, a user account will be name@company.com  So bugs@acme.com would be a user.  I need a way to extract acme from the login name and use it in the connection string for the membership provider.
I've yet to find a way to manually configure provider settings in code versus they have to be set in the web.config file and the membership provider reads di ...

Go to the complete details ...