Last post Mar 28, 2011 11:22 AM by Dave Sussman
Mar 25, 2011 05:01 PM|IFrozen|LINK
I am developing a multicultural web sites and using resource files.
The page that works fine with resource file and the one that does not work uses same masterpage.
These are the files in my App_LocalResources folder. I am changing the cultures using this code block
System.Threading.Thread.CurrentThread.CurrentCulture = thecultureinfo;
System.Threading.Thread.CurrentThread.CurrentUICulture = thecultureinfo;
this code block works fine in one page and not works in the other one.
is this a bug or am I doing something wrong ? any ideas ?
Mar 25, 2011 11:24 PM|dotnetstep|LINK
Is This ASP.net Project or MVC Application ?
If asp.net then use IntializeCulture method of page to change culture.
Also make sure that page is at proper location.
Mar 26, 2011 03:11 AM|IFrozen|LINK
it is not an MVC project. regular asp.net 4.0.
I have already override the InitializeCulture method but the problem is that there are two pages with same structure. one page works fine but the other does not. why ? is it because of the working page has Datalists and gridviews that use localization inside
Mar 26, 2011 11:42 PM|agavejoe|LINK
There's not enough information in your post to provide an answer. You have 3 different cultures, default, en, and tr. there is no indication of which culture is not working. First, I would view the resource files and make sure that all 3 default, en, and
tr contain the text you expect.
Mar 28, 2011 11:22 AM|Dave Sussman|LINK
Check for Culture and UICulture attributes in the @Page attribute in the aspx file and remove them if they are present.