摘要: Server.MapPath(path) The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.Parameters (MSDN:ms-help://MS.MSDNQTR.2003FEB.2052/iisr... 阅读全文
posted @ 2007-04-14 14:18 黑星 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 介绍大家三个在项目中用到的DataTable的小巧实用的方法(排序、检索、合并): 一、排序1 获取DataTable的默认视图2 对视图设置排序表达式3 用排序后的视图导出的新DataTable替换就DataTable(Asc升序可省略,多列排序用","隔开) DataView dv = dt.DefaultView; dv.Sort = "id Asc,name Desc";dt = dv... 阅读全文
posted @ 2007-04-14 11:27 黑星 阅读(439) 评论(0) 推荐(0) 编辑