Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
I have created Folder Structure (for example the test folder has a page TestPage where I have created a LocalReource.resx file for Russian language) for a Web page. When I call the page from another page say Login.aspx the resource keys are not bound to the controls. can any one help me regarding this ?


Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 19-Mar-14 15:40pm    
The question does not really make sense. There is no such concept "call a page from another page".
—SA

1 solution

The question does not really make sense. There is no such concept "call a page from another page".

The pages are independent and can use different unrelated resources. In this respect, you should take care about globalization and localization of each page using resources separately. The localization based on satellite assemblies is well explained here: http://msdn.microsoft.com/en-us/library/1ztca10y%28v=vs.85%29.aspx[^] (and around this page).

See also: http://msdn.microsoft.com/en-us/library/c6zyy3s9%28v=vs.100%29.ASPX[^].

If you can provide the sample code which could be used to reproduce your problem, you can have a chance for further advice. However, the problem is that you simply did not properly globalize and localize at least one of your pages, by one or another reason.

—SA
 
Share this answer
 
Comments
AshLiGaLa 23-Mar-14 2:22am    
Maybe I don't express my question in a proper way. I will try again ))

I've created a userControl where I have Images for every Language.
For example clicking image for French I have this code:
HttpCookie cookie = new HttpCookie("CurrentLanguage");
cookie.Value = "fr-FR";
cookie.Expires = DateTime.Now.AddMonths(6);
Response.SetCookie(cookie);
Response.Redirect(Request.RawUrl);

I use this UserControl on my masterPage.
http://i59.tinypic.com/29xu843.jpg - this is how my webPages are created.
Now, for my AdminLogin.aspx page localization is working.
But for Vehicles.aspx it doesnot work (as Vehicles is in another folder, has another URL)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900