Auto Post back property not working with tab container

前端 未结 2 1954
刺人心
刺人心 2021-01-25 02:39

I am applying globalization on my hotel management system web portal and I am stuck with an issue.My issue is that I have a drop down list of two languages English and Spanish a

2条回答
  •  鱼传尺愫
    2021-01-25 03:33

    here i found answer after two days of my searching. the answer is very simple :)

    i set the value of my language to UICulture

    protected override void InitializeCulture()
            {
                if (Request.Form["ctl00$contentplaceholder1$language_drp"] != null)
                {
    
                    UICulture = Request.Form["ctl00$contentplaceholder1$language_drp"];
                }
                if (Request.QueryString["HotelID"] != null)
                {
    
                    this.UICulture = "es";
                }
                base.InitializeCulture();
            }
    

    and its working fine :)

提交回复
热议问题