【一般处理程序】获取Session

引用命名空间

using System.Web.SessionState;

继承接口:IRequiresSessionState

获取Session

string Creator = context.Session["operName"] == null ? "" : context.Session["operName"].ToString();

 

posted @ 2021-11-23 10:52  智者见智  阅读(61)  评论(1编辑  收藏  举报