MVC母板页传递数据

问题:判断Session 失败

结果:

if (Session[SessionKey.AccountInfo] != null)
{

ViewData["AdminUser"] = CurrentAccountInfo;
}

 

继承自MVC的不能判断为空~

 

posted @ 2017-03-03 11:12  【唐】三三  阅读(187)  评论(0编辑  收藏  举报