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 Generate random rows in dataset using c#.net

How to use Format function in Microsoft Dynamics Navision.