W
walter
The question sound simple -- I had a multilingual site, I give a button on
each page to allow user switch to different language, and of cause I want to
use asp.net 2 globalization mechanism. So what I did is 1. make my controls
to use new resource expression, 2.create a session variable to record the
current language 3. and put a logic in page_load {
....Thread...Current...UICulture..= new
CultureInfo(..Session("LangCode")...); } .But when I traced the process, I
found the resource actually is populated before the page_load function.
Well, the reason I know this is because I created my own customized resource
provider factory inheriting from ResourceProviderFactory, and I found the
process sequence is Provider.GetObject()., then Page_Load().
Well, I can try to put page_init event , but I guess someone here must know
the solution already. Appreciate any comment.
each page to allow user switch to different language, and of cause I want to
use asp.net 2 globalization mechanism. So what I did is 1. make my controls
to use new resource expression, 2.create a session variable to record the
current language 3. and put a logic in page_load {
....Thread...Current...UICulture..= new
CultureInfo(..Session("LangCode")...); } .But when I traced the process, I
found the resource actually is populated before the page_load function.
Well, the reason I know this is because I created my own customized resource
provider factory inheriting from ResourceProviderFactory, and I found the
process sequence is Provider.GetObject()., then Page_Load().
Well, I can try to put page_init event , but I guess someone here must know
the solution already. Appreciate any comment.