Question : Get NT Login in Silverlight

I have a Silverlight 3 application that I am developing with Studio 2010 Beta 2 and when deployed the xap will be served up from an IIS site with Integrated Security.  In Silverlight, how can I get the login name that was used?  Basically I need
a Silverlight 3 version of Request.ServerVariables["Auth_User"].

Answer : Get NT Login in Silverlight

Since your IIS have "Integrated Security" enabled for this web project, then you can try get UserName as in any ASP.NET application. Just make a request to one of your web services on same web project adn you'll get it as simple as
 string name = HttpContext.Current.User.Identity.Name.ToString();
then return it to your Silverlight app and use it there.
Random Solutions  
 
programming4us programming4us