示例#1
0
        protected void LoadSiteLocation(string siteId)
        {
            var global = new CGlobal();

            RadComboBoxSiteLocation.DataSource     = global.GetSiteLocationBySiteId(Convert.ToInt32(siteId));
            RadComboBoxSiteLocation.DataTextField  = "Name";
            RadComboBoxSiteLocation.DataValueField = "Value";
            RadComboBoxSiteLocation.DataBind();
        }
示例#2
0
        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();
        }
示例#3
0
        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;
                }
            }
        }