asp.net读取XML文件后怎么执行分页啊 asp.net读取XML文件后怎么执行分页啊谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你需要使用xpath过滤数据,或者遍历xml,将部分数据保存在另外一个xml 对象中 例子System.Xml.XmlDocument doc = new System.Xml.XmlDocument();doc.LoadXml("<items/>");for (int i = 0; i < 100; i++){ System.Xml.XmlNode node = doc.CreateNode(System.Xml.XmlNodeType.Element, "item", null); node.InnerText = i.ToString(); doc.DocumentElement.AppendChild(node); }//doc.Save(Server.MapPath("data.xml"));System.Xml.XmlNodeList nodes = doc.SelectNodes("/items/item[position() > 10 and position() < 20 ]");foreach (System.Xml.XmlNode n in nodes){ Response.Write(n.InnerText);} 有关登录验证码 帮我看看关于水晶报表关联表内容显示完整性问题???项目第一次做报表,都愁死我了! 如何遍列对象的属性,以及值? vs 2005 和 vs.net2003是什么关系? 求个正则表达式 客户端调用服务端程序(帮主帮忙,很急啊!在线等) 有高手吗?问一个概念性的问题!HttpModule是什么东东?做什么用的? asp.net 如何向 oracle 数据库存储日期型数据并显示在页面上? 怎样在asp.net页面使用下载的控件? 急问.NET的变量传递问题?在线等!! 关于vs2008的问题 请教:IIS browse helloworld.aspx 包错cs1528
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.LoadXml("<items/>");
for (int i = 0; i < 100; i++)
{
System.Xml.XmlNode node = doc.CreateNode(System.Xml.XmlNodeType.Element, "item", null);
node.InnerText = i.ToString();
doc.DocumentElement.AppendChild(node);
}
//doc.Save(Server.MapPath("data.xml"));System.Xml.XmlNodeList nodes = doc.SelectNodes("/items/item[position() > 10 and position() < 20 ]");
foreach (System.Xml.XmlNode n in nodes)
{
Response.Write(n.InnerText);
}