Hi,
I was trying to get local system's username in my code behind. I tried every almost possible way.
Here is the scenario:
My project is web based and I don't have a login screen....I need to get the local system's username when some user opens the website....
I tried.
and some functions as well posted at this site: http://www.developerfusion.co.uk/show/4409/
But no luck.....Its getting the username from the server instead of the user's computer.....
And I am using VS 2008.
I would really appriciate....I f someone can provide me a better solution for this..
Thanks.
I was trying to get local system's username in my code behind. I tried every almost possible way.
Here is the scenario:
My project is web based and I don't have a login screen....I need to get the local system's username when some user opens the website....
I tried.
Code:
environment.Username environ("username") System.Windows.Forms.SystemInformation.UserName system.Security.Principal.WindowsIdentity.GetCurrent.Name
But no luck.....Its getting the username from the server instead of the user's computer.....
And I am using VS 2008.
I would really appriciate....I f someone can provide me a better solution for this..
Thanks.
Comment