MVC异步控制器加载一个网页的所有内容
摘要:
1 public void PageAsync() { 2 3 AsyncManager.OutstandingOperations.Increment(); 4 5 WebRequest req = WebRequest.Create("http://www.asp.net"); 6 req.BeginGetResponse((IAsyncResult ias) => { 7 WebResponse resp = req.EndGetResponse(ias); 8 9 ... 阅读全文
posted @ 2013-11-25 20:28 PEIYANGXINQU 阅读(270) 评论(1) 推荐(0) 编辑