protected void cmb_district_ValueSelect(object sender, Syncfusion.JavaScript.Web.ComboBoxEventArgs e) { var A = e.Value; string DistanceA = ""; string Y4A = ""; string Y3A = ""; if (A.ToString().Contains("|")) { string[] Am = A.ToString().Split('|'); DistanceA = Am[0]; Y4A = Am[1]; Y3A = Am[2]; } var AP = e.Text; l_IDdistrict.Text = AP.ToString(); lbl_Dictrict.Text = AP.ToString(); this.cmb_ampure.DataSource = AmpureList.GetAmpure(l_IDprovince.Text); this.cmb_district.DataSource = DictrictList.GetDictrict(l_IDprovince.Text, l_IDampur.Text); lbl_distance.Text = DistanceA.ToString(); lbl_PriceY4.Text = Y4A; lbl_PriceY3.Text = Y3A; FNGET(lbl_distance.Text); }
protected void cmb_Province_ValueSelect1(object sender, Syncfusion.JavaScript.Web.ComboBoxEventArgs e) { var A = e.Text; l_IDprovince.Text = A.ToString(); var AP = e.Text; lbl_Province.Text = AP.ToString(); this.cmb_ampure.DataSource = null; this.cmb_district.DataSource = null; cmb_ampure.Text = ""; cmb_district.Text = ""; cmb_ampure.Value = ""; cmb_district.Value = ""; this.cmb_ampure.DataSource = AmpureList.GetAmpure(l_IDprovince.Text); FNGET(lbl_distance.Text); if (l_IDprovince.Text == "ชลบุรี") { cmb_district.Enabled = true; } else { cmb_district.Enabled = false; } }