R
ryan.mclean
Hello everyone,
I am wondering, can the membership provider be changed at runtime?
Perhaps the connectionStringName?
I would like to use a different database based on the server the site
is on.
I suppose that a custom provider could be used to accomplish this, is
there another way?
It would be great to do the following:
Select Case strEnvironment
Case "PRD"
ConfigurationManager.ConnectionStrings("SQLConnectionString").ConnectionString
= "super-secret connection string for production"
Case Else
ConfigurationManager.ConnectionStrings("SQLConnectionString").ConnectionString
= "super-secret connection string for development"
End Select
Thanks for your input,
Ryan
I am wondering, can the membership provider be changed at runtime?
Perhaps the connectionStringName?
I would like to use a different database based on the server the site
is on.
I suppose that a custom provider could be used to accomplish this, is
there another way?
It would be great to do the following:
Select Case strEnvironment
Case "PRD"
ConfigurationManager.ConnectionStrings("SQLConnectionString").ConnectionString
= "super-secret connection string for production"
Case Else
ConfigurationManager.ConnectionStrings("SQLConnectionString").ConnectionString
= "super-secret connection string for development"
End Select
Thanks for your input,
Ryan