Error loading postback data: System.Xml.XmlException: The data at the root level is invalid. Line 1, position 218. at System.Xml.XmlTextReader.ParseRoot() at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadNoCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.Grid.LoadClientData(String sData) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Error loading postback data: System.Xml.XmlException: The data at the root level is invalid. Line 1, position 218. at System.Xml.XmlTextReader.ParseRoot() at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadNoCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.Grid.LoadClientData(String sData)
没用过任何XML文件,请高手帮忙看看 

解决方案 »

  1.   

    The data at the root level is invalid. Line 1, position 218. 
    你仔细检查下你的xml数据根目录看看安
      

  2.   

      <input id="Button1" type="button" value="更新推荐商品" onclick="FillHot();"/></td>
    一个普通的按纽
     function FillHot()
        {
         select1=window.document.all.lbHot;
         window.document.all.hidHot.value="";
         for   (var   i=0;i<select1.length;i++)
         {   
            window.document.all.hidHot.value+='%%%%'+select1.options[i].text+'**'+select1.options[i].value;   
         }   
            __doPostBack('btnFill','')
        }
    转而执行btnFill里的方法,可以点击以后根本无法调试,单击直接报错