We help IT Professionals succeed at work.

Retrieve Local Windows Username - Silverlight

DanOLorenz
DanOLorenz asked
on
How do you retrieve the local windows user name in Silverlight?  I know how to do it using WCF.  I need to retrieve the local windows user name straight from Silverlight.

Thanks,

Dan
Comment
Watch Question

Here is an example:
Xaml1.InitParameters = "username=" + this.Request.ServerVariables["LOGON_USER"];

Author

Commented:
Actually, I am programming this in Visual Basic.  I tried:

Xaml1.InitParameters = "username=" + WebRequest.ServerVariables("LOGON_USER")

It is not recognizing WebRequest or Request.

Do I need some imports?

Thanks,

Dan

Author

Commented:
Do you know of any other ways of calling this and in Visual Basic?

Thanks,

Dan