StrataFrame Forum

How can I change language during runtime

http://forum.strataframe.net/Topic20355.aspx

By Jiri Brazda - 10/25/2008

Hi,

I need to enable user of my web application to change language during runtime. I have link buttons that cuases postback and in the eventhandler I change the language by:

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1029

However the language is not changed until the postback is called once again. It seems that language texts are set before the linkbutton click event handler is processed. Is there any solution or workaround?

Thank You

George

By Trent L. Taylor - 10/26/2008

On the web a post back wil be required after the language is changed.  It is just a matter of setting the language (like your code sample showed) and then forcing a post back.