【发布时间】:2013-05-06 12:25:00
【问题描述】:
我正在使用以下方法检查一些会话变量:
if(MySession.Current.mpr != null && MySession.Current.mpr1 != null && MySession.Current.mpr2 != null
&& MySession.Current.mpr3 != null && MySession.Current.mip != null && MySession.Current.vr != null)
{
....
}
它不起作用!我知道其中一个变量不为空。 有什么建议吗?
【问题讨论】:
-
调试的时候有没有发现哪个变量不为空?
-
是的,它是 MySession.Current.mip。
标签: c# asp.net-mvc session session-variables