H
hanyingce
Unregistered / Unconfirmed
GUEST, unregistred user!
在web.config中配置如下:
<appSettings>
<add key="DSN" value="user id=sa;pwd=;data source=172.16.254.10;database=hanying"/>
</appSettings>
在程序中调用如下:
string dsn=ConfigurationSettings.AppSettings("DSN");
SqlConnection ConStr=new SqlConnection (dsn);
编译提示出错如下:
The type or namespace name 'ConfigurationSettings' could not be found (are you missing a using directive or an assembly reference?)
请教各位是什么原因?
<appSettings>
<add key="DSN" value="user id=sa;pwd=;data source=172.16.254.10;database=hanying"/>
</appSettings>
在程序中调用如下:
string dsn=ConfigurationSettings.AppSettings("DSN");
SqlConnection ConStr=new SqlConnection (dsn);
编译提示出错如下:
The type or namespace name 'ConfigurationSettings' could not be found (are you missing a using directive or an assembly reference?)
请教各位是什么原因?