MVC使用数据库列填充下拉列表 [英] MVC populate dropdown using database column

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

问题描述

我是MVC的新手,我有一个使用三个表的视图。在显示器上,我使用搜索条件来过滤视图。其中一列是下拉列表.....这应该显示从其他表中过滤的描述和id值。

请告诉我

I am new to MVC and i have a view which is using three tables. On the display i am using search criteria to filter the view. One of the column is a dropdown .....this should show the description and id value to filter from other table.
Please let me know

推荐答案

//Hi Sandhya as you asked question, MVC populate dropdown using database column, Go through the given link, as per your description if you want to get the values or text from dropdown fro your search criteria you can use jquery.   



http://www.aspdotnet-pools.com/2014/06/bindpopulate-dropdownlist-using-entity.html [ ^ ]


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

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