View Single Post
  #3 (permalink)  
Old March 1st, 2006, 04:36 AM
niceFEPF niceFEPF is offline
Registered User
Join Date: Feb 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Hello there.

Well…because I am trying to access the value selected in the ListBox inside "InitializeCulture()" method, that takes place before Pre_Init() and Page_Load(). Within InitializeCulture (the method that we can override to set our language preferences) no page object is yet created, including the ListBox. Doing “ListBox.SelectedValue” would result in a Null Exception.

I know that accessing the awful string works, but I don't think it is a friendly solution (in terms of programming)...and I am also not sure that the string is always this one.

What bugs me is that this works perfectly if I do not use Master Pages (which I cannot avoid because it offers interesting advantages).