来自DB的asp.net mvc 3下拉列表绑定和来自同一下拉列表的所选项目 [英] asp.net mvc 3 dropdownlist binding from DB and selected item from same dropdownlist
本文介绍了来自DB的asp.net mvc 3下拉列表绑定和来自同一下拉列表的所选项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
你能帮帮我吧。
i创造了asp。 net mvc3应用程序我希望将值从DB绑定到下拉列表,并且需要将所选项目传递给相应的控制器我怎么做请帮助我,还有错误消息框需要创建请帮助mke on this。
高级Thankxs
问候,
Narasimha
Hi All,
CAn you please help me on this.
i have created asp.net mvc3 application i want binding the values from DB to dropdownlist and need to selected item pass to respective controller how i can do please help me and also error messagebox need to create please help mke on this.
Advanced Thankxs
Regards,
Narasimha
推荐答案
以下链接就是您所需要的!从头到尾。不确定你的问题的最后部分是什么意思(错误消息框)。
http://www.asp.net/mvc/tutorials/javascript/working -with-the -downdownlist-box-and-jquery / using-the-dropdownlist-helper-with-aspnet-mvc [ ^ ]
希望这有帮助!
The link below is all you need! Start to finish. Not sure what you mean by the last part of your question (error messagebox).
http://www.asp.net/mvc/tutorials/javascript/working-with-the-dropdownlist-box-and-jquery/using-the-dropdownlist-helper-with-aspnet-mvc[^]
Hope this helps!
使用jquery ajax并返回字符串 - 如果字符串为空则没有错误显示警告,其中包含从控制器返回的消息。
http://api.jquery.com/jQuery.ajax/ [< a href =http://api.jquery.com/jQuery.ajax/target =_ blanktitle =New Window> ^ ]
use jquery ajax and return string - if string is blank no error else show alert with message returned from controller.
http://api.jquery.com/jQuery.ajax/[^]
检查这个一个
查看部分: -
这篇关于来自DB的asp.net mvc 3下拉列表绑定和来自同一下拉列表的所选项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文