ASP.NET中自定义的类如何引用Request等对象

ASP.NET中自定义的类如何引用Request等对象?

解决方法很简单,写出其引用全名即可:

System.Web.HttpContext.Current.Request

System.Web.HttpContext.Current.Server

原文地址:https://www.cnblogs.com/daxia319/p/1452677.html