/// <summary> /// Initialize UI controls. /// </summary> private void InitControls() { // Populate "Year" dropdown. for (int i = 2000; i <= 2050; i++) { this.ddlYear.Items.Add(new ListItem(i.ToString(), i.ToString())); } // Populate "Month" dropdown. for (int j = 1; j <= 12; j++) { this.ddlMonth.Items.Add(new ListItem(HDateTime.GetMonthName(j), j.ToString())); } }