3
Answers

Dropdownlistfor not binding with string array in razor syntax in MVC5

sfx wall

sfx wall

4y
1.6k
1
Hi,
 
unable to bind dropdownlistfor with string array
 
Razor View Code :
 @Html.DropDownListFor(model => model.PatientPrescriptionViewData.Prescription[i].DropDownSelected,new SelectList(Model.PatientPrescriptionViewData.RightEye_HorizontalPrism_DropDown), Model.PatientPrescriptionViewData.Prescription[i].DropDownSelected)
 
String Array Model Value :
 
 
 
 
Thanks in advance, please help me out. 
Answers (3)