在函数InitializeComponent中给treeview的数据源中绑定了一个xml文件,
可以显示出树的结构,但是作出了修改之后想保存xml文件的时候,总会提示
System.IO.IOException: 该进程无法访问文件“F:\mineManage\Data.xml”,因为该文件正由另一进程使用。这是怎么一回事呢?
可以显示出树的结构,但是作出了修改之后想保存xml文件的时候,总会提示
System.IO.IOException: 该进程无法访问文件“F:\mineManage\Data.xml”,因为该文件正由另一进程使用。这是怎么一回事呢?
微软官方网站
http://www.microsoft.com/china/msdn/archives/library/workshop/webcontrols/overview/treeview.asp2.
引用:
http://community.csdn.net/Expert/topic/4196/4196863.xml?temp=9.365261E-03
http://community.csdn.net/Expert/topic/3169/3169028.xml?temp=.8414118
当读完之后要关掉的.reader.Close ();
this.TreeView2.TreeNodeSrc=Server.MapPath("gData.xml");