ListItem item1 = Ddl_PROJECT_ID.Items.FindByValue(task.PROJECT_ID);
if (item1 != null)
{
Ddl_PROJECT_ID.Items.FindByValue(task.PROJECT_ID).Selected = true;
}
else
{
Ddl_PROJECT_ID.SelectedIndex = 0;
}
No comments:
Post a Comment