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认证勾掉
默认页设置到登入