七色彩虹

勤奋、务实、团结、创新

导航

2010年11月16日

摘要: 本文描述如何使用CLR中的StringWriter,XmlSerializer将对象, 对象集合序列化为Xml格式的字符串, 同时描述如何进行反序列化.C#版本: C# 3.0开发环境: VS 2008主要方法:复制 保存 阅读全文

posted @ 2010-11-16 12:43 aadfe 阅读(6328) 评论(0) 推荐(0) 编辑

摘要: string m_QuestURL = "http://localhosts/service.ashx"; //Post请求地址 HttpWebRequest m_Request = (HttpWebRequest)WebRequest.Create(m_QuestURL); //相应请求的参数 byte[] data = Encoding.GetEncoding("gb2312").GetByt... 阅读全文

posted @ 2010-11-16 12:41 aadfe 阅读(610) 评论(0) 推荐(0) 编辑

摘要: HttpContext.Current.Request.Url.ToString() 并不可靠。如果当前URL为 http://localhost/search.aspx?user=http://csharp.xdowns.com&tag=%BC%BC%CA%F5通过HttpContext.Current.Request.Url.ToString()获取到的却是http://localho... 阅读全文

posted @ 2010-11-16 11:31 aadfe 阅读(1014) 评论(0) 推荐(0) 编辑