Link to home
Start Free TrialLog in
Avatar of ts84zs
ts84zs

asked on

ASPX/.NET - "User.Identity.Name" any known issues?

I am building an intranet website. It should be JavaScript-html.
However, I have to check who is current windows domain-user logged in. So for my homepage, I have written aspx-page - myfirstpage.aspx (Because in JavaScript there is no way to find out currently logged-in user )  
So I am planning to get userid by using this code -

String username = User.Identity.Name; /// in myfirstpage.aspx.cs

Are there any problems/issues like browser issues in getting username like this in aspx?

Or is there any other way to get username using JavaScript...

thanks a lot...
ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ts84zs
ts84zs

ASKER

ok thanks so much... What is the best way to do this type of check ...