2013年8月12日
摘要: WEB开发,在一般处理程序中,很容易得到 Request和Response对象,如:HttpRequest _request = context.Request;HttpResponse _response = context.Response;但是要得到 Session的值就没有那么简单了。比如如果要在ashx得到保存在Session中的登录用户信息 Session["LoginUser"]如果仅仅使用 context.Session["LoginUser"] 的话,是会报 “未将对象引用设置到对象的实例”的异常!具体要使用下列方法:using Sys 阅读全文
posted @ 2013-08-12 17:33 Lucien.Bao 阅读(420) 评论(0) 推荐(0) 编辑