How to get computer Name and user name using asp.net ?



//it will give the computer name and userr name.


       
String pc = System.Security.Principal.WindowsIdentity.GetCurrent().Name;

here 'pc' contains the user's computer name and username


--
/\/ir@\/  <(.'.)>

Comments

Popular posts from this blog

How to get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.