Every call to the server gets the Accept-Language value, but can I get that information within the Silverlight client?
I found System.Windows.Browser.HtmlPage.BrowserInformation but it doesn’t contain the user language preferences.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You mean the value that you would get via “Request.Headers[“Accept-Language”]” in .net? I would just add a method to the web service that provides data to your silverlight to return it, then request it from Silverlight when the app starts up.
I usually back my Silverlight application with a server-side .net WCF service, so I would just add a method for this kind of information.
If you don’t want a webservice method, you can also pass it to your Silverlight application at startup using initParms.