摘要: 1.雅虎天气预报网站:http://hk.weather.yahoo.com/(1)主要的软件有雅虎天气软件,传统黄历91黄历天气v2.0.1等(2) 提供的天气预报接口的说明:如下使用雅虎访问程序的解析参考如下网址http://download.csdn.net/download/zsd406095755/3676406http://bbs.9ria.com/thread-49642-1-1.htmlhttp://kb.cnblogs.com/page/42993/2/yahoo天气预报的url是http://weather.yahooapis.com/forecastrss?w=21513 阅读全文
posted @ 2013-06-27 13:40 lampon 阅读(1840) 评论(0) 推荐(1) 编辑
摘要: System.Diagnostics.Process p = new Process(); p.StartInfo.UseShellExecute = true; p.StartInfo.FileName = @"D:\text.txt"; p.Start(); 阅读全文
posted @ 2013-06-27 13:12 lampon 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: url 请求的路径地址 postData 传入的参数 public static string Post(string url, string postData) { CookieContainer cookieContainer = new CookieContainer(); Uri URI = new Uri(url); byte[] byteArr = Encoding.UTF8.GetBytes(postData); HttpWebRequest request = WebReq... 阅读全文
posted @ 2013-06-27 11:58 lampon 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 第1种://通过传入的特定XML字符串,通过 ReadXml函数读取到DataSet中。 protected static DataSet GetDataSetByXml(string xmlData) { try { DataSet ds = new DataSet(); using (StringReader xmlSR = new StringReader(xmlData)) { ds.ReadXml(... 阅读全文
posted @ 2013-06-27 11:55 lampon 阅读(268) 评论(0) 推荐(0) 编辑