示例#1
0
        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();
        }
示例#2
0
        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;
                }
            }
        }