i have an array with several positisons and read the array position text like "abc" then it has to go to the dropdown and select the abcbut it is not selecting i tried this:
ddl.Items.FindByText(arr[2].ToString());
arr is returning abc then it has to select on dropdown the abc text but dont work
i'm creating dropdown like this:
int y = DateTime.Now.Year;
for (int i = y - 20; i <= y + 20; i++)
{
ddl.Items.Add(i.ToString());
}
i think its because its not adding text property but how can i do it in that for