I have the following in my web.config
<connectionStrings> <add name="ActiveDirectoryConnection" connectionString="LDAP://ActiveDirectoryDomain1.com" providerName="System.Web.Security.ActiveDirectoryMembershipProvider"/> </connectionStrings>
I need to add a dropdown to my login page, which allows the user to change the connectionString to another line, for example. "LDAP: //ActiveDirectoryDomain2.com"
In C # code, how to change the value of connectionString?
Additional Information:
The problem I ran into is that there are 4 more other web.config parameters that are called a single String connection. For instance:
<activeDirectorySecurityContextSettings connectionStringName="ActiveDirectoryConnection" defaultADUserName="ReportUser" defaultADPassword="password"/>
Thanks!
user390480
source share