Culture codes. RRS feed

  • Question

  • User379532407 posted

    Hi all

    I have an annoying issue when Im changing the culture of a page. I can hard code the values like:

    Session["UIc"] = "ar-SA"; and initialise the culture value like this.

    Otherwise, say when I'm trying to get the value from a dropdownlist, it doesn't act the same way for some reason. e.g.

    Session["UIc"] = DropDownList1.SelectedValue.ToString();

    Is there something I need to change to change it to some kind of culture type ??

    I''m stuck on it, but I'm pretty sure its something to do with the variable type.



    Saturday, November 13, 2010 1:37 AM


  • User-231977777 posted


    i guess you call this in Intialize Method , so you need to get dropdownlist like this  :

    Session["Some"] = Request["dropdownList1"] ;

    hope this helps




    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, November 13, 2010 2:29 AM