protected void LoadSiteLocation(string siteId) { var global = new CGlobal(); RadComboBoxSiteLocation.DataSource = global.GetSiteLocationBySiteId(Convert.ToInt32(siteId)); RadComboBoxSiteLocation.DataTextField = "Name"; RadComboBoxSiteLocation.DataValueField = "Value"; RadComboBoxSiteLocation.DataBind(); }
protected void LoadSiteLocation(int siteId) { var global = new CGlobal(); RadComboBoxSiteLocation.Items.Clear(); RadComboBoxSiteLocation.Text = string.Empty; RadComboBoxSiteLocation.DataSource = global.GetSiteLocationBySiteId(siteId); RadComboBoxSiteLocation.DataTextField = "Name"; RadComboBoxSiteLocation.DataValueField = "Value"; RadComboBoxSiteLocation.DataBind(); }
protected void LoadSiteLocation(int siteId) { var global = new CGlobal(); RadComboBoxSiteLocation.Items.Clear(); RadComboBoxSiteLocation.Text = string.Empty; RadComboBoxSiteLocation.DataSource = global.GetSiteLocationBySiteId(siteId); RadComboBoxSiteLocation.DataTextField = "Name"; RadComboBoxSiteLocation.DataValueField = "Value"; RadComboBoxSiteLocation.DataBind(); foreach (RadComboBoxItem item in RadComboBoxSiteLocation.Items) { if (item.Value == CurrentSiteLocationId.ToString()) { item.Selected = true; break; } } }