如何填充表中的dropdownlist以及插入MVC4中另一个表的选定值 [英] How to fill dropdownlist from table and the selected value inserted to another table in MVC4

查看:90
本文介绍了如何填充表中的dropdownlist以及插入MVC4中另一个表的选定值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个表,第一个是具有代码和值的查找表,第二个表有一个coulmn,用于第一个表中的主键盘。我想在注册表中创建一个由数据填充的下拉列表当我在asp mvc4

i have two tables the first one is a lookup table which has code and value and the second table has a coulmn that is forign to the primary keyy in the first table .i want to make a dropdownlist in registeration form filled by data from first table and the selected value inserted into the second table when i click to submit button in asp mvc4

推荐答案

这篇关于如何填充表中的dropdownlist以及插入MVC4中另一个表的选定值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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