摘要: HttpContext.Current返回当前请求的 HttpContext 对象。如此我们就可以直接访问Request、Response、Session、Application等对象,和Page中访问等同。我们无需再将Page用参数的方式传递到我们的类库对象中。HttpContext.Current.Session["name"] = "猪八戒";string name = HttpContext.Current.Request.Param["name"];HttpContext.Current.Response.Write(&qu 阅读全文