随笔分类 -  ASP.NET

摘要:1 XmlDocument doc = new XmlDocument(); 2 doc.Load(HttpContext.Current.Server.MapPath("~/App_Data/" + xmlName + ".xml")); 3 XmlNodeList nodeList = doc.SelectNodes(xpath); 4 foreach (XmlNode sub in nodeList) 5 { 6 if ... 阅读全文
posted @ 2012-07-12 10:23 看看天上云 阅读(2045) 评论(0) 推荐(0)
摘要:1 /// <summary> 4 /// 去除后面多余的零 5 /// </summary> 6 /// <param name="dValue"></param> 7 /// <returns></returns> 8 private string RemoveZero(decimal dValue) 9 {10 string sResult = dValue.ToString();11 if (sResult.IndexOf(".") < 0)12 return sRes 阅读全文
posted @ 2012-04-28 10:07 看看天上云 阅读(3228) 评论(0) 推荐(0)