Hello All,
I have a Scenario where i need to connect different databases while login. There are many branches the company has. And in Every branch they have there own database. In My Asp.Net Express Database i have a Branch table which has all connection strings of
all the databases with IPAddress. When The user opens the login form it provides a Dropdown list for connecting different branches. as shown Below.
The Sql Express Database Table which is in my Application App_Data Folder.

This is how i am validating the user. First i am getting the connection string from the local database based on the users selection. Then I am storing it in Session and Working with it.

Till now its working fine. But I have issue using the Default Asp_Membership and Asp_Roles tables. Since i am providing the connection string dynamically and it will not be available in Web.Config and which i know about default membership provider and roles provider we need to provide connection string name in web.config.
And since i am accessing the database using sessions, it will not be available in web.config.
Does any one know how to pass new user, password change information and roles information in a customized way in the default Asp.Net Membership and Roles Tables.
Hope i explained the problem in a correct way. If needed more information i can provide. but i need help. I am completely struck in this work.
Thanks