protected void LoadSite(int siteId) { var global = new CGlobal(); RadComboBoxSite.Items.Clear(); RadComboBoxSite.Text = string.Empty; RadComboBoxSite.DataSource = global.GetSiteId(siteId); RadComboBoxSite.DataTextField = "Name"; RadComboBoxSite.DataValueField = "Value"; RadComboBoxSite.DataBind(); }
protected void LoadSite() { var global = new CGlobal(); RadComboBoxSite.Items.Clear(); RadComboBoxSite.Text = string.Empty; RadComboBoxSite.DataSource = global.GetSiteId(); RadComboBoxSite.DataTextField = "Name"; RadComboBoxSite.DataValueField = "Value"; RadComboBoxSite.DataBind(); foreach (RadComboBoxItem item in RadComboBoxSite.Items) { if (item.Value == CurrentSiteId.ToString()) { item.Selected = true; break; } } }