Suppose assigned year is not found in the dropdown items, then it will give a error. so better assign the value to SelectedValue properly.
or
Suppose you don't have value property and want to select the value based on the Text property then please go for the Extended method for Dropdown
public static void SelectText(this DropDownList ddlExt, string text)
{
try
{
ListItem lstItem = ddlExt.Items.FindByText(text);
if (lstItem != null)
{
if (ddlExt.SelectedIndex >= 0)
ddlExt.Items[ddlExt.SelectedIndex].Selected = false;
lstItem.Selected = true;
}
}
catch (Exception ex)
{
throw ex;
}
}
And you can assign the value as
ddlFrom.SelectText("2014")