开发者

windows authentication in ASP.Net

So, i have my virtual directory with Anonymous Access disable开发者_JAVA百科d. I allow users to login to my app through the windows server login. I wish to know how i can, through the code, capture the username that is logging in.

Is this possible?

Thanks


HttpRequest.Current.User.Identity.Name or simply User.Identity.Name if you are in a Page should give you the name of the user currently logged in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜