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

Add new node(Element) in existing xml file in C#.Net

How to use serial.write() in Arduino.

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