node.Attributes中不包含"Value"这个索引

解决方案 »

  1.   

    glacier111(做网站,计算机毕业设计)
    包含的
      

  2.   

    我也怀疑node.Attributes["Value"]是null   这样判断 if (!node.Attributes["Value"].Equals(null))对吗?
      

  3.   

    node.Attributes["Value"].Value是值是什么,自己单步调试就知道了
      

  4.   

    chenjunhui(dafdsfadsfads) 
    能否帮忙修改一下代码?
      

  5.   

    node.Attributes["Value"]是null
    那怎么还是包含呢,
    跟踪一下
    看看就知道了
      

  6.   

    单步后  ds.Tables[0].Rows.Add(val);出错“未将对象引用设置到对象的实例。”
    val的值为1000。
    什么原因?
      

  7.   

    ds.Tables[0].Rows.Add(val);中 val 应为DataRow型的