Link to home
Start Free TrialLog in
Avatar of DanOLorenz
DanOLorenz

asked on

Retrieve Local Windows Username - Silverlight

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
Avatar of no worries :-) no nothing
no worries :-) no nothing
Flag of Greece image

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

ASKER

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
Do you know of any other ways of calling this and in Visual Basic?

Thanks,

Dan
ASKER CERTIFIED SOLUTION
Avatar of Shahan Ayyub
Shahan Ayyub
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial