protected void Page_Load(object sender, EventArgs e) { Session["lblLocationSelected"] = null; Session["lblStatusSelected"] = null; Session["lblDateSelectedTo"] = null; Session["lblDateSelected"] = null; Session["selLocationId"] = null; Session["IsFirstTime"] = null; Session["SortDefault"] = true; Session["SelectedRange"] = "all"; try { if (JobForm.Visible) { regaCombo = (this.JobForm.FindControl("regCombo") as ValidatedComboBox); locaCombo = (this.JobForm.FindControl("locCombo") as ValidatedComboBox); locaCombo.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(AddJob_ItemsRequested); locaCombo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(locaCombo_SelectedIndexChanged); Label script = new Label(); script.Text = "<script>"; script.Text += "function LoadLocations(item){ var countriesCombo = " + locaCombo.ClientID + ";"; script.Text += "if (item.Index > 0) { "; script.Text += "countriesCombo.RequestItems(item.Value, false);}}"; script.Text += "</script> "; plScript.Controls.Add(script); } } catch { } }