MVC DropDownList [英] MVC DropDownList

查看:75
本文介绍了MVC DropDownList的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我是Asp.Net MVC 2的新手。



我有Html.DropdownList,我能够绑定数据库中的数据。



当用户从下拉列表中选择任何项目时需要显示所选项目。在同一个Viewpage。



请帮帮我,有点紧急..



先谢谢。

Hi Friends,

I am New for Asp.Net MVC 2.

I have Html.DropdownList and i am able to bind data from database.

When user select any item from Dropdownlist Need to "Display" Selected Item. In same Viewpage.

Please help me, it bit urgent..

Thanks in Advance.

推荐答案

将一些讨论与答案联系起来:



http://forums.asp.net/t/1497267.aspx



http://forums.asp.net/t/1297381.aspx



http://forums.asp.net/t/1590038.aspx
refer some discussions with answers:

http://forums.asp.net/t/1497267.aspx

http://forums.asp.net/t/1297381.aspx

http://forums.asp.net/t/1590038.aspx


你可以用jquery

为你的Dropdown附加一个动作方法。

请参阅此 https://api.jquery.com/change/



然后将数据绑定到你的领域。
you can do with jquery
attach a action method for your Dropdown.
see this https://api.jquery.com/change/

then bind the data to your feild.


这篇关于MVC DropDownList的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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