摘要:
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... 阅读全文
摘要:
异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值原因:如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Applicatio... 阅读全文
摘要:
这个问题一般是在页面中使用了Page.Response方法,虽然是继承了System.Web.UI.Page。但System.Web.UI.Page下的Response只有在asp.net页面里才有意义,若要使用请用System.Web.HttpContext.Current.Response 阅读全文