从数据库mvc填充下拉列表 [英] populate dropdown list from database mvc

查看:65
本文介绍了从数据库mvc填充下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有学生详细信息表格,我希望主题组合框包含来自数据库中主题表的主题和学生选择主题从该组合框如何获得此类型的组合框

解决方案

检查以下网址。



如何从数据库数据加载下拉列表 [ ^ ]


如果你做了谷歌条款



组合框

绑定

数据集



你会得到你需要的答案 - 这里有两个这样的结果,第二个显示各种'数据源'绑定



http://msdn.microsoft.com/en-us/librar y / x8160f6f(v = vs.110).aspx [ ^ ]



http://www.c-sharpcorner.com/UploadFile/0f68f2/programmatically-binding-datasource-to-combobox-in-multiple/ [ ^ ]


如何在mvc 4总qus中搜索?





如何在mvc 4的下拉列表中连接数据库值

i am having student detail form and i want to have subject combobox that will contain subjects from subject table in database and student select subject from that combo box how to get this type of combo box

解决方案

Check below URL.

How to Load a dropdownlist from database data[^]


if you did a google for the terms

combobox
binding
dataset

you'd get the sort of answers you need - here are two such results, the second shows all sorts of 'datasource' bindings

http://msdn.microsoft.com/en-us/library/x8160f6f(v=vs.110).aspx[^]

http://www.c-sharpcorner.com/UploadFile/0f68f2/programmatically-binding-datasource-to-combobox-in-multiple/[^]


how to search in mvc 4 total qus?


how to database values to connect in the dropdownlist in mvc 4


这篇关于从数据库mvc填充下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆