Last post May 06, 2007 03:21 AM by vivek_iit
May 05, 2007 10:54 PM|cybercrypt15|LINK
I have been watching the video clip on the ASP site related to dealing with Localization. I have my site setup exactly as the video except that I'm using C# instead of VB. The issue is that inside my InitializeCulture() method, I don't seem to have access
to the postback information. In fact, it can't even detect that a post back is even occuring.
When I issue Request.Form[ "MyDropDown" ]; to try to get the value of my dropdownlist it always gives me a null.
Is there some other way to do this in C#?
May 06, 2007 03:21 AM|vivek_iit|LINK
InitializeCulture() fires much earlier in the page lifecycle so Page information like value of controls etc will not be available directly using control IDs. You need to get the value from the HTTP POST data as shown in this article:
Hope this helps,