<configuration> <connectionStrings> <add name="cnString" connectionString="myConnectionString"> </connectionStrings> </configuration>in code-behind:
using System.Configuration;
string connectString = ConfigurationManager.ConnectionStrings["cnString"].ConnectionString;
沒有留言:
張貼留言