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 use serial.write() in Arduino.

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

How to Generate random rows in dataset using c#.net