解决调用HttpContext类
解决问题:
在非XXX.aspx.cs文件中使用Response、Request对象,即在aspx文件的CodeFile文件(Code Behind分离的代码文件)之外使用Response、Request对像。
方法:
1.在bin上右键点击"添加引用"--".NET"选项卡中找到System.Web你就可以看到这个引用后面的路径就是你想引用的System.Web.Dll,
路径为C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.Dll (.NET 2.0的)
2.添加进来后,然后再写using System.Web;就可以了
资料:
在非XXX.aspx.cs文件中使用Response、Request对象 http://blog.csdn.net/webflash/article/details/4245166
System.Web.Dll为什么引用不上 http://topic.csdn.net/u/20100417/11/828db2a0-b9cc-43cb-ab03-8f9b8311d69c.html
技术文档