摘要: 在.NET 下读取.xml 文件的方法:1.利用 XmlTextReader 类,如:XmlTextReader reader = new XmlTextReader(Server.MapPath(XmlPath));while(reader.Read()){if(reader.NodeType == XmlNodeType.Text ){Response.Write(reader.Name +"... 阅读全文
posted @ 2006-03-09 11:31 ChenHongye 阅读(408) 评论(0) 推荐(1) 编辑
摘要: SQL Server ODBC Standard Security:"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;" Trusted connection:"Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;" ... 阅读全文
posted @ 2006-03-09 09:55 ChenHongye 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 在DataGrid的web版控件中提供了自动分页的功能,但是我从来没用过它,因为它实现的分页只是一种假相。我们为什么需要分页?那是因为符合条件的记录可能很多,如果一次读取所有的记录,不仅延长获取数据的时间,而且也极度浪费内存。而分页的存在的主要目的正是为了解决这两个问题(当然,也不排除为了UI美观的需要而使用分页的)。而web版的DataGrid是怎样实现分页的了?它并没有打算解决上述两个问题... 阅读全文
posted @ 2006-03-09 09:46 ChenHongye 阅读(156) 评论(0) 推荐(0) 编辑