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 make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.

How to create simple report in Microsoft Dynamics Navision.