can someone help me here why the dropdown control is not populated with the year starting from 2009....2000 in a descending order. I can get it to work in ascending order.my problem is when I do it in descending order for asc. i do it this way . thank you
For intYear = DateTime.Now.Year To DateTime.Now.Year + 9
For intYear = DateTime.Now.Year To DateTime.Now.Year + 9
Code:
Dim intYear As Integer
ddlLettYear.Items.Add(intYear)
Next
ddlLettYear.Items.Insert(0, New System.Web.UI.WebControls.ListItem("--Year--", 0))
ddlLettYear.Items.FindByValue(0).Selected = True
[code]