Localization problems Client-Server in Silverlight

Localization problems Client-Server in Silverlight

Old forum URL: forums.lhotka.net/forums/t/7482.aspx


Tomas posted on Wednesday, August 19, 2009

Hi.

I am wondering how to get the culture from the Silverlight application down to the server.

The way I have set it up right now is that the ASP.NET page sends it's culture to the Silverlight application. The SL app then sets that culture on it's own thread so that all resources work the way they should.

But when I make a call to the DataPortal the server side does not get the correct culture on the thread.

Do i have to send the culture in the ClientContext and set it on the thread in the server? Or is there a better way to solve this?

Tomas

RockfordLhotka replied on Monday, August 24, 2009

Right now that is what you'll need to do.

It seems to me we tried to flow the culture automatically in SL2 and had some trouble. I'll have to look at that again with SL3, as ideally the culture would flow automatically like it does in CSLA .NET for Windows.

Copyright (c) Marimer LLC