用户控件中ajax调用Session

在用户控件中使用ajax的时候,对session进行读取的话除了要用[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]的标记,直接用Session来读取是不行的,需要使用 HttpContext.Current.Session["Key"],

posted on 2010-12-15 20:44  picky-boy  阅读(154)  评论(0编辑  收藏  举报

导航