DateTime now = DateTime.Now; //当前年份-10 为起始年份 int year = now.Year - 10; //向后100年 for (int i = 0; i < 100; i++) { string value = (year + i).ToString(); //ddlYear为DropDownList的ID ddlYear.Items.Add(new ListItem(value, value)); }