I have a dropdownlist1 and i want the year from 190 to till date
the main problem is that How can i format my Dropdownlist1 by------
1990-1991
1991-1992
.
.
.
2010-2011
like this.
Can anyone help me out.
Dropdownlist with that type value.
int j = Convert.ToInt32(DateTime.Now.Year.ToString());
for (int i = 1990; i <= j; i++)
{
DropDownList1.Items.Add(i.ToString());
}