我在一个页面里运行
httpcontext.current.user = new GenericPrincipal(identity,userRoles);
if(httpcontext.current.user.IsInRoles("admin"))
return true;
else
return false;
返回true为什么在另一个页面里运行
if(httpcontext.current.user.IsInRoles("admin"))
return true;
else
return false;返回false,怎么回事
httpcontext.current.user = new GenericPrincipal(identity,userRoles);
if(httpcontext.current.user.IsInRoles("admin"))
return true;
else
return false;
返回true为什么在另一个页面里运行
if(httpcontext.current.user.IsInRoles("admin"))
return true;
else
return false;返回false,怎么回事
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货