TreeView 如何绑定 xml
摘要:TreeView 不能用DataSet作为数据源, 不过可以用XmlDataSoruce作为数据源:if(!IsPostBack) { XmlDataSource xds = new XmlDataSource(); xds.DataFile = @"..\XMLFile.xml"; xds.XPath = @"./node()/*"; //设置xpath, 本例中是绑定除根节点以外的所有节点 t...
阅读全文
posted @ 2008-04-25 13:53
浙公网安备 33010602011771号