随笔分类 -  asp.net(C#)

摘要:将DataTable对象转换成XML字符串 1 /// <summary> 2 /// 将DataTable对象转换成XML字符串 3 /// </summary> 4 /// <param name="xmlDT">DataTable对象</param> 5 /// <returns>XML字符串</returns> 6 private string ConvertDataTableToXML(DataTable xmlDT) 7 { 8 MemoryStream stream = null; 9 X 阅读全文
posted @ 2011-06-13 11:07 很久以前我就知道博客园的昵称可以很长很长很长很长 阅读(978) 评论(0) 推荐(2)
摘要:1 /// <summary> 2 /// 随机排列字符串 3 /// </summary> 4 /// <param name="sNumber">需要排列的字符串</param> 5 /// <returns>排列后的字符串</returns> 6 public static string ArrangeNumber(string sNumber) 7 { 8 int len = sNumber.Length; 9 char[] A = new char[len];10 char[] B = new 阅读全文
posted @ 2011-06-13 10:57 很久以前我就知道博客园的昵称可以很长很长很长很长 阅读(416) 评论(1) 推荐(1)
摘要:SessionManager.csCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System.Web; 2 3 public class SessionManager<T> 4 { 5 public static T GetSessionObject(string key) 6 { 7 object obj = HttpContext.Current.Session[key]; 8 if (obj == nul 阅读全文
posted @ 2010-09-16 08:41 很久以前我就知道博客园的昵称可以很长很长很长很长 阅读(1578) 评论(0) 推荐(0)