volking
asked on
retrieve value from Web.Config
Using C#, from a WEB.CONFIG, how do I retrieve the value "Server=XYZ;Initial Catalog=ABC;User=MyName;pa ssword=psw d;" Here's the WebConfig
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="MyCustKey" connectionString="Server=X YZ;Initial Catalog=ABC;User=MyName;pa ssword=psw d;" providerName="System.Data. SqlClient" />
</connectionStrings>
</configuration>
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="MyCustKey" connectionString="Server=X
</connectionStrings>
</configuration>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
are you using 1.1 or 2.0?