How to bind DataTable to @Html.DropDownListFor in asp.net MVC3

前端 未结 3 1596
粉色の甜心
粉色の甜心 2021-01-27 20:09

I have a DataTable which looks like below:

TOTAL_CODE COD_NAME AP0001 School AP0002 Hospital AP0003 Airport A

3条回答
  •  青春惊慌失措
    2021-01-27 20:29

    I found all other approaches terribly confusing, so I did this in my view and seems to be working just fine. The zero is the column index for the table. I am using vb.net

    
    

提交回复
热议问题