参考下 http://www.wrclub.net/study/listarticle.aspx?id=1934 这种做法会好很多。

解决方案 »

  1.   

    粘贴错误,地址是: http://dev.csdn.net/article/29/29972.shtm
    呵呵。sorry.
      

  2.   

    你试试不要用update行不行.这种问题好象不会发生啊!
      

  3.   

    System.Xml.XmlDocument xmlDoc; 
            xmlDoc = new System.Xml.XmlDocument();
            xmlDoc.Load("c:\\App.config");
            System.Xml.XmlNodeList xmlNodes = xmlDoc.SelectNodes("//update");
            foreach System.Xml.XmlNode xmlNode in xmlNodes
                MessageBox.Show(xmlNode.Attributes("ID").InnerText)
                MessageBox.Show(xmlNode.Attributes("current").InnerText)
            next
      

  4.   

    不用update是可以的,一定要通过appSettings读,请指教!
      

  5.   

    也许update这个词不能用来做configuresection
    换个名字试试如何,比如 updateSection之类
      

  6.   

    to bluesky35,如果你真想要通过 appSettings,就参考http://dev.csdn.net/article/29/29972.shtm吧。一样的道理。