ConfigurationManager.AppSettings["conStr"]是什么意思?
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 05:03:22
ConfigurationManager.AppSettings["conStr"]是什么意思?ConfigurationManager.AppSettings["conStr"]是什么意思?Conf
ConfigurationManager.AppSettings["conStr"]是什么意思?
ConfigurationManager.AppSettings["conStr"]是什么意思?
ConfigurationManager.AppSettings["conStr"]是什么意思?
获取 配置文件 Web.Config中
字符串
key="conStr"的value
也就是获得了 data source=.;persist security info=True;initial catalog=gbinfosystem;user id=sa;password=123
这个你应该明白了吧,就是 数据库的连接字符串
configurationmanager是什么意思
ConfigurationManager.AppSettings[conStr]是什么意思?
ConfigurationManager.AppSettings[conStr]是什么意思?
string strconn = ConfigurationManager.AppSettings[connStr];是啥意思string strconn = ConfigurationManager.AppSettings[connStr];
SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings[SQLCONNECTIONSTRING].ConnectionString);
Unable to load configuration.- action - file:/E:/apache-tomcat-6.0.28/webapps/Struts2_2000_OGNL/WEB-INF/classes/com/byg/struts/ognl/action/ognl.xml:7:75at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:
为什么这么简单的问题我都不会?string str = System.Configuration.ConfigurationManager.AppSettings[sqlConnString]; SqlConnection sc = new SqlConnection(str); sc.Open(); string sqls = insert into teacher_info_north(teacher
请问每句代码的意思是什么?public SqlDataReader GetmySend(string username){SqlConnection myConnection = new SqlConnection(ConfigurationManager.AppSettings[MySQLConn]);string cmdText = SELECT * FROM send where name='+username+' ORDER BY