将Session变量封装在静态类中,在处理程序文件调用时,会出现Session为Null,(HttpContext.Current.Session 为Null),主要原因是因为.ashx文件没有读写Session的权限,所以出现为Null值的现象,解决方法如下:1.添加引用 using System.Web.SessionState;2.在.ashx文件添加接口public class tree:IHttpHadnler,IRequireSessionState{} Read More
posted @ 2013-03-26 10:19
FredTang
Views(208)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号