string ConString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
<?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add connectionString ="SERVER=; DATABASE=; UID=; PASSWORD= ;" name="ConString"/> </connectionStrings> </configuration>
< pre lang="xml">
? ConfigurationManager.ConnectionStrings["ConString"].ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)