如何根据MVC中的下拉选择填充数据 [英] How to populate data based on dropdown selection in MVC

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

问题描述

当我选择下拉列表然后在下面的文本框中绑定相关数据



我尝试过:



i在数据库中有一个表格

从数据库中获取数据到下拉列表

when iam selecting dropdown list then bind the related data in the below text boxs

What I have tried:

i have a table in database
get a data in to dropdown list from database

推荐答案

参考这些

根据下拉列表中的选择自动填充文本字段ASP.NET论坛 [ ^ ]

ASP.NET MVC:根据下拉列表中的选定值填充表单字段 [ ^ ]

有很多关于这个主题的文章,请做一些谷歌。
refer these
Auto populate text field based on selection in a dropdown list | The ASP.NET Forums[^]
ASP.NET MVC: Populating form fields based on selected value in drop down list[^]
there are tons of article on this topic available, please do some google.


这篇关于如何根据MVC中的下拉选择填充数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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