sfx wall

sfx wall

  • NA
  • 108
  • 7.8k

Dropdownlistfor not binding with string array in razor syntax in MVC5

Oct 5 2020 6:28 AM
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)