在VS2005中创建AJAXEnabled 网站,在WEN.CONFIG添加
<appSettings>
<add key="sqlcon" value="Data Source=(local);Database=text;User id=sa;Pwd= "/>
</appSettings>应该放在什么位置?
<appSettings>
<add key="sqlcon" value="Data Source=(local);Database=text;User id=sa;Pwd= "/>
</appSettings>应该放在什么位置?
解决方案 »
- 分页保存dropdownlist选中的值!
- 分别建立二个DataTable,然后建立DataRelation,最后根据关联再产生DataTable(如何做)
- 语法错误
- 关于页面信息保存的问题,请各位高手指点!
- vs2005中如何找到: Global.asax.cs
- 在asp.net中怎样连接打印机
- 关于上传到服务器出现的小问题,发了两次贴都没解决,郁闷...
- 用WebBrowser打印网页的问题
- 取得DataTable某一列,将定列存为数组,如何来做?
- TreeView问题,为什么我的程序里显示Treepaybasic未申明?
- 欲画一饼状图,求教由不会到入门(简单需求)
- 写一个仿新浪用户名验证正则表达式
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="ct" connectionString="Data Source=.;Initial Catalog=ct;Persist Security Info=True;User ID=sa;Password=sa" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
<add key="ConnectionString" value="Server=AAAA;uid=sa;pwd=TTiger;Database=qm_88" />
</appSettings>
<connectionStrings/>
<system.web>
<pages>
<controls>大概位置 !!!
没全贴出来
<appSettings>
<add key="sqlcon" value="Data Source=(local);Database=fuluen;User id=sa;Pwd= "/>
</appSettings>
</connectionStrings>这句话出错:SqlConnection Con = new SqlConnection(ConfigurationManager.AppSettings["sqlcon"]);