如题!

解决方案 »

  1.   

    System.Configuration.ConfigurationManager.AppSettings["####"];
      

  2.   

    我是这么用的,cs文件里这样调用
    SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);web.config里面加这个 <connectionStrings>
    <add name="ConnectionString" connectionString="Data Source=12wedsadda\SQLEXPRESS;Initial Catalog=northwind;Persist Security Info=True;User ID=sa;Password=jtdmnfg" providerName="System.Data.SqlClient"/>
    </connectionStrings>
      

  3.   

    你们干啥那都人家问 asp!!!ASP 用XML对象读没有专用的类和asp.net那样的!
    <%
    dim xml,objNode,objAtr,nCntChd,nCntAtr
    Set xml=Server.CreateObject("Microsoft.XMLDOM") 
    xml.Async=False
    xml.Load(Server.MapPath("aspreadxml.xml")) Set objNode=xml.documentElement
    nCntChd=objNode.ChildNodes.length-1
    for i=0 to nCntChd
    set objAtr=objNode.ChildNodes.item(i)
    nCntAtr=objAtr.Attributes.length-1
    for j=0 to nCntAtr
    response.write objAtr.Attributes.item(j).Text&"<br>"
    next
    response.write "<br>"
    nextSet objAtr=Nothing
    Set objNode=Nothing 
    Set xml=Nothing 
    %>
      

  4.   

    原则上是实用 Microsoft.XMLDOM 对象读取
    到google 搜索 Microsoft.XMLDOM 很多的
      

  5.   

    Microsoft VBScript 编译器错误 错误 '800a0401' 语句未结束 /1.asp,行 10 System.Configuration.ConfigurationManager.appSettings["SqlConnection1"];
    -----------------------------------------------------------------------^