handler(一般处理程序)使用session

1.导入

 

using System.Web.SessionState;

 

 

 

2.添加

 public class TreeData : IHttpHandler, IRequiresSessionState, IReadOnlySessionState
{}

 

 

3.使用

System.Web.HttpContext.Current.Session["num"].ToString();

 

 

posted @ 2010-07-15 10:25  DODUI  阅读(547)  评论(0编辑  收藏  举报