如何在不使用MVC 4中的实体框架的情况下绑定下拉列表 [英] How to bind dropdown without using entity framework in MVC 4
本文介绍了如何在不使用MVC 4中的实体框架的情况下绑定下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对MVC更新,请有人帮我用mvc绑定下拉列表,使用模型视图控制器。
我尝试了什么:
我没有尝试过任何我不知道如何开始的事情。
I am fresher for MVC,Please anybody help me to bind dropdown list in mvc using model view controller.
What I have tried:
I didnt try anything cos i dont know how to start.
推荐答案
使用DataTable
将DataTable绑定到MVC中的DropDownList [ ^ ]
using DataTable
bind a DataTable to a DropDownList in MVC [^]
使用DropDownListFor
使用ASP.NET MVC的DropDownListFor [ ^ ]
Use DropDownListFor
DropDownListFor with ASP.NET MVC[^]
这篇关于如何在不使用MVC 4中的实体框架的情况下绑定下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文