sebastijanp
10-25-2005, 09:47 PM
Hi!
In the example of the localization, there are link buttons to change the language put on child screen aspx (UserRegistration.aspx).
Now, I have my master page composed of small UserControls. There are placeholders for TopMenuUserControl, LeftSideUserControl, BottomuserControl, and the placeHolder for the main content.
So in the main content there would come for example DocumentsTree.aspx. If I put link buttons to change the language on that child aspx DocumentsTree.aspx, everything is ok, because I can set:
this.UserCulture = new CultureInfo((string) e.CommandArgument);
UserCulture is inherited from Spring-Page.
Now my problem: My Web designer wants me to put the links in a part of the page where menus are. So I have to put my links into TopMenuUserControl which inherits Spring-UserControl. But then I do not have this.UserCulture to set. how do I resolve that? Is it possible to change the language localization only in child pages?
Lp
Sebastijan
In the example of the localization, there are link buttons to change the language put on child screen aspx (UserRegistration.aspx).
Now, I have my master page composed of small UserControls. There are placeholders for TopMenuUserControl, LeftSideUserControl, BottomuserControl, and the placeHolder for the main content.
So in the main content there would come for example DocumentsTree.aspx. If I put link buttons to change the language on that child aspx DocumentsTree.aspx, everything is ok, because I can set:
this.UserCulture = new CultureInfo((string) e.CommandArgument);
UserCulture is inherited from Spring-Page.
Now my problem: My Web designer wants me to put the links in a part of the page where menus are. So I have to put my links into TopMenuUserControl which inherits Spring-UserControl. But then I do not have this.UserCulture to set. how do I resolve that? Is it possible to change the language localization only in child pages?
Lp
Sebastijan