Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to Initialize membership and roles provider at run-time

$
0
0

Is it possible to execute the ProviderBase.Initialize method on-demand?
We are developing a web application which manages several businesses and each business has its own users and database with exactly the same schema. We would like to change the business at run-time and, after that, select the database that corresponds to it. Selecting the database is not a problem, but we also need to re-define the properties of the Membership provider and the Roles provider. These parameters are set in the web.config and one of the settings is the "connectionStringName". Our issue is that this connection string can change at run-time when a different business is selected. Is this possible?

Respectfully,
Jorge Maldonado


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>