Beispiel #1
0
 private void ClearLicenseAllocated()
 {
     DropDownListLicenseAllocated.ClearSelection();
     DropDownListLicenseAllocated.Items.FindByValue("0").Selected = true;
     GridViewLicenseAllocated.DataSource = null;
     GridViewLicenseAllocated.DataBind();
     PanelLicenseAllocatedGrid.Visible = GridViewLicenseAllocated.Rows.Count > 0;
 }
Beispiel #2
0
        private void BindLicenseAllocated()
        {
            DropDownListLicenseAllocated.ClearSelection();
            DropDownListLicenseAllocated.DataSource     = SPARInsightManagement.Web.Code.License.GetLicenseAllocatedList();
            DropDownListLicenseAllocated.DataTextField  = "LicenseKey";
            DropDownListLicenseAllocated.DataValueField = "LicenseId";
            DropDownListLicenseAllocated.DataBind();

            if (DropDownListLicenseAllocated.Items.Count > 1)
            {
                DropDownListLicenseAllocated.Items.Insert(0, new ListItem("Please select", "0"));
            }
        }