if (!Page.IsPostBack) { ddlYears.SelectedIndex = 0; int yearname = Convert.ToInt32(DateTime.Now.Year); int intloop; int minus = yearname - 2; for (intloop = minus; intloop <= yearname; intloop++) { ddlYears.Items.Add(new ListItem(intloop.ToString())); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)