我想在.net mvc4中创建一个动态下拉列表,我想在下拉列表中显示宽度交叉长度 [英] i want to create a dynamically dropdownlist in .net mvc4 ,i want to shows width cross length in dropdownlist

查看:47
本文介绍了我想在.net mvc4中创建一个动态下拉列表,我想在下拉列表中显示宽度交叉长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用实体框架db首先我有2张桌子



1.地毯:



id,名称,有效,描述,价格:,sizes_id



2.尺寸:



id,width,长度,isActive

解决方案

嗨..你能详细说明你的问题..你需要哪种格式下拉列表中的文本以及db中模型中的变量是什么。上下文

using entity framework db first i have 2 tables

1.carpet:

id,name,active,Description,price:,sizes_id

2.Sizes:

id,width,length,isActive

解决方案

Hi.. Can you elaborate your question.. in which format you need Text in dropdown list and what are the variable in the model in db.Context


这篇关于我想在.net mvc4中创建一个动态下拉列表,我想在下拉列表中显示宽度交叉长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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