c#mvc User.Identity.Name 为空
摘要:
使用场景:MVC项目中直接显示用户名 一般情况下view中userName:@User.Identity.Name 一般显示为空,如果没有登陆界面,要显示默认用户名步骤如下: 1.在最外层web.config <appSettings> 中添加节点 <add key="enableSimpleMem 阅读全文
posted @ 2016-06-24 16:45 昂扬绽放 阅读(909) 评论(1) 推荐(0) 编辑