By Piush Shukla
if (!IsPostBack) { for(int i = 2000, i <= DateTime.Now.Year; i++) { MyDropDownList.Items.Add(i.ToString()); } //Select the current year initially MyDropDownList.SelectedIndex = MyDropDownList.Items.Count - 1; }