18得票2回答
如何将DownloadString(url)的允许时间限制在500毫秒内?

我正在编写一个程序,当textBox1改变时:URL = "http://example.com/something/"; URL += System.Web.HttpUtility.UrlEncode(textBox1.Text); s = new System.Net.WebClient(...

16得票2回答
如何在C#中使用System.Web.Script.Serialization?

我该如何在C#现代UI中实现这个? var url = "http://ajax.googleapis.com/ajax/services/feed/load?q=http%3A%2F%2Fwww.digg.com%2Frss%2Findex.xml&v=1.0"; var wc =...

12得票6回答
DownloadStringAsync 等待请求完成

我正在使用这段代码来获取一个url的内容:private ArrayList request(string query) { ArrayList parsed_output = new ArrayList(); string url = string.Format( ...

9得票2回答
无法解析的StackExchange API响应

我写了一个小程序来分析StackExchange API返回的个人资料数据,但是API返回的数据无法解析/读取。 接收到的数据:(使用C#自己下载) {"items":[{"badge_counts",{"bronze":987,"silver":654,"gold":321},"acco...