hi ,
dropdownlist value not selected when loop over indexed collection in asp.net mvc view
Code
for(int i=0;i<dependentmodellist.count;i++)
{
@Dropdownlistfor(m=>Model.dependentmodellist[i].Status,New List{})
}for(int i=0;i<dependentmodellist.count;i++)
{
@Dropdownlistfor(m=>Model.dependentmodellist[i].Status,New List{})
}
Answers
Know the answer? Post it. Somebody with the same question will find it here.