hi there..
first of all, the web config file is an xml file.. so you have your appsettings close, the file should be something like
Code:
<appSettings>
<add key="ConnString" value="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ensurecms;Data Source=VENUS;"/>
</appSettings>
anyway, since you are declaring a connection string, you should now that in 2.0 there is a conection string section in the web.config.
you can do something like this
Code:
<connectionStrings>
<add name="ConnString" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ensurecms;Data Source=VENUS;"
providerName="System.Data.SqlClient" />
</connectionStrings>
you should check the providername ;)
then is will be easier to connect datasources (since it will recognize the connectionstrings section) and by code using:
Code:
System.Configuration.ConfigurationManager.ConnectionStrings("ConnString").ConnectionString
HTH
Gonzalo