C#操作XML
摘要:一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingl...
阅读全文
posted @
2010-06-11 16:05
William2013
阅读(192)
推荐(0) 编辑
SQL 日期时间函数
摘要:--短日期格式:yyyy-m-dSELECTREPLACE(CONVERT(varchar(10),getdate(),120),N'-0','-')--长日期格式:yyyy年mm月dd日SELECTSTUFF(STUFF(CONVERT(char(8),getdate(),112),5,0,N'年'),8,0,N'月')+N'日'--短日期格式:yyyy年m月d日SELECTDATENAME(Y...
阅读全文
posted @
2010-06-09 14:43
William2013
阅读(327)
推荐(0) 编辑
过滤非法字符(脏字)的类
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSystem.Web;usingSystem.Collections;namespace******.WebHelper{publicclassFilterText{stringFilePath=stri...
阅读全文
posted @
2010-06-04 16:27
William2013
阅读(399)
推荐(0) 编辑