Breaking News
Loading...
Sunday 14 October 2012

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@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer