This will tell you if the user is connected to the domain although it works the same way:
System.Security.Principal.WindowsIdentity.GetCurre nt().Name.ToString()
Returns: [domain]\username
obviously if they are not connected to the domain, the computer name will take the place of [domain]
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========