private void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { LicenseType type1 = new LicenseType(); type1.GetAllLicense(); this.dropListLicenseType.DataSource = type1.GetAllLicense(); this.dropListLicenseType.DataTextField = "LicenseName"; this.dropListLicenseType.DataBind(); this.Calendar1.SelectedDate = DateTime.Today; } }
private void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { LicenseType type1 = new LicenseType(); type1.GetAllLicense(); this.licenseTypeList.DataSource = type1.GetAllLicense(); this.licenseTypeList.DataTextField = "LicenseName"; this.licenseTypeList.DataBind(); this.licenseTypeList.Items.Add("--Do Not Use--"); int num1 = this.licenseTypeList.Items.Count - 1; this.licenseTypeList.SelectedIndex = num1; this.SortOrder.Text = "DESC"; } }