string currentUser = HttpContext.Current.User.Identity.Name;
WEB CONFIG
<authentication mode="Forms">
</authentication>
-------------------------------
iis
把集成windows认证勾掉
默认页设置到登入
用户认证配置
string currentUser = HttpContext.Current.User.Identity.Name;
WEB CONFIG
<authentication mode="Forms">
</authentication>
-------------------------------
iis
把集成windows认证勾掉
默认页设置到登入
714

被折叠的 条评论
为什么被折叠?