摘要: 无标题文档来源: 阅读全文
posted @ 2014-05-23 11:14 菜鸟学CSharp 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo... 阅读全文
posted @ 2014-05-02 21:46 菜鸟学CSharp 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1 StreamWriter sw = new StreamWriter(@"d:\log.txt",true);2 sw.WriteLine(System.DateTime.Now.ToString() + " " + "This is a test message!")... 阅读全文
posted @ 2014-05-02 07:20 菜鸟学CSharp 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: ALTERDATABASE "DBNAME"SETEMERGENCYALTERDATABASE"DBNAME"SETSINGLE_USERDBCCCheckDB("DBNAME",REPAIR_ALLOW_DATA_LOSS)ALTERDATABASE"DBNAME"SETMULTI_USER 阅读全文
posted @ 2014-04-14 16:20 菜鸟学CSharp 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 1 public static DataTable ToDataTable(List list) 2 { 3 DataTable result = new DataTable(); 4 if (list.Count > 0) 5... 阅读全文
posted @ 2014-04-13 21:27 菜鸟学CSharp 阅读(1635) 评论(2) 推荐(0) 编辑