L
Larry Neylon
Hi there,
We are in the process of implementing Membership and Role Management and
have a problem with the connection strings in our web.config.
We currently have a system that on Application_Start set the
Application["connection_string"] to the relevant ConnectionString from the
web.config based upon the domain (so we can handle dev/test/live, etc).
The problem we have is that we can't see how to dynamically set the
connectionStringName properties in the web.config for
AspNetSqlMembershipProvider, AspNetSqlRoleProvider, etc.
My questions are:
a) Is there a better way to handle the multiple sites / connections strings
issues than working out the correct one on app startup ?
b) If what we are doing isn't insane, how can you dynamically set the
connectionStringName for the Membership and Roles stuff ?
Any help or advice would be much appreciated.
Regards,
Larry.
We are in the process of implementing Membership and Role Management and
have a problem with the connection strings in our web.config.
We currently have a system that on Application_Start set the
Application["connection_string"] to the relevant ConnectionString from the
web.config based upon the domain (so we can handle dev/test/live, etc).
The problem we have is that we can't see how to dynamically set the
connectionStringName properties in the web.config for
AspNetSqlMembershipProvider, AspNetSqlRoleProvider, etc.
My questions are:
a) Is there a better way to handle the multiple sites / connections strings
issues than working out the correct one on app startup ?
b) If what we are doing isn't insane, how can you dynamically set the
connectionStringName for the Membership and Roles stuff ?
Any help or advice would be much appreciated.
Regards,
Larry.