I am using an ASP membership provider and a profile provider. As we all know, these providers read their connection string from web.config, which means that it is static.
Is there a way to pass the connection string dynamically by code to these providers.
My application will connect to different databases depending on the login name, when the user presses the login button, I know the database connection string, and here I want to transfer the connection string to the providers.
source
share