Auto Post back property not working with tab container

前端 未结 2 1955
刺人心
刺人心 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:25

    you can use web method to initializeculture. for that you have to initially create javascript method that will call when you clicked on edit tab and from that script you can call page level web method to initializeculture. hopefully this will help you.

    0 讨论(0)
  • 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 :)

    0 讨论(0)
提交回复
热议问题