日期:2014-05-18 浏览次数:20600 次
for (DateTime dt = new DateTime(2008, 1, 1); dt <= DateTime.Now; dt = dt.AddYears(1)) { DropDownList1.Items.Add(new ListItem(dt.Year.ToString())); }