.NET 追寻足迹

C# 之路

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年12月31日

摘要: ashx中默认不能使用session, HttpContext.Current.Session 为 null。解决方法如下:增加命名空间引用,实现指定接口%@ WebHandler Language="C#" Class="Handler" % using System; using System.Web; using System.Web.SessionState; public class Handler : IHttpHandler, IRequiresSessionState { public void ProcessRequest (HttpContext context) 阅读全文
posted @ 2010-12-31 17:19 绿水青山 阅读(347) 评论(0) 推荐(0) 编辑