摘要: Which one should I use?“WebClient is a wrapper class around the HttpWebRequest class that is used to perform Web service requests. WebClient can be easier to use because it returns result data to your... 阅读全文
posted @ 2011-12-07 17:30 Lee zhang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值原因:如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Applicatio... 阅读全文
posted @ 2011-12-07 10:53 Lee zhang 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 这个问题一般是在页面中使用了Page.Response方法,虽然是继承了System.Web.UI.Page。但System.Web.UI.Page下的Response只有在asp.net页面里才有意义,若要使用请用System.Web.HttpContext.Current.Response 阅读全文
posted @ 2011-12-07 10:52 Lee zhang 阅读(106) 评论(0) 推荐(0) 编辑