private void BindYearDropDowns() { int lifeExpentancy = 0; lifeExpentancy = customerBo.ExpiryAgeOfAdviser(adviserVo.advisorId, customerVo.CustomerId); if (customerVo.Dob != DateTime.MinValue) { customerAge = DateTime.Now.Year - customerVo.Dob.Year; } int customerLife = lifeExpentancy - customerAge; int lifeLastYear = DateTime.Now.Year + customerLife; int currentYear = DateTime.Now.Year; for (; currentYear <= lifeLastYear; currentYear++) { ddlPickYear.Items.Add(currentYear.ToString()); ddlFromYear.Items.Add(currentYear.ToString()); ddlToYear.Items.Add(currentYear.ToString()); ddlPickYearFS.Items.Add(currentYear.ToString()); ddlRangeYearFSFROM.Items.Add(currentYear.ToString()); ddlRangeYearFSTO.Items.Add(currentYear.ToString()); } //ddlPickYear.Items.Insert(0, new ListItem("Select", "Select")); //ddlFromYear.Items.Insert(0, new ListItem("Select", "Select")); //ddlToYear.Items.Insert(0, new ListItem("Select", "Select")); }