如何使用AJAX加载下拉列表 [英] how to load Dropdown list using AJAX
本文介绍了如何使用AJAX加载下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用两个Dropdown List.now我想更新第一个索引更改的第二个下拉列表,不用重新加载页面。任何一个可以帮助meeeeee的人/>
推荐答案
在ajax更新面板的帮助下尝试。
try with the help of ajax update panel.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:DropDownList runat="server">
</asp:DropDownList>
</asp:UpdatePanel>
更多信息回复,我希望你的问题已解决。
for more information reply, I hope are your problem as been solve.
请参考这些链接
实际上有很多在线文章可以演示基于ajax的级联下拉菜单
< a href =http://www.aspsnippets.com/Articl ES / AJAX的级联-DropDownList的样本与 - 数据库使用-ASPNet.aspx> http://www.aspsnippets.com/Articles/AJAX-Cascading-DropDownList-sample-with-database-using-ASPNet.aspx [ ^ ]
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/walkthrough/ccdwithdb.aspx [ ^ ]
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/cascadingdropdown/cascadingdropdown.aspx [ ^ ]
希望这会有所帮助......
Refer these links
Actually there are loads of articles available online which demonstrates ajax based cascade dropdowns
http://www.aspsnippets.com/Articles/AJAX-Cascading-DropDownList-sample-with-database-using-ASPNet.aspx[^]
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/walkthrough/ccdwithdb.aspx[^]
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/cascadingdropdown/cascadingdropdown.aspx[^]
Hope this helps...
你也可以在Jquery的帮助下。这很容易理解......
请求进一步讨论?
U can take the help of Jquery as well. It's easy to understand...
Please ask for further discussions??
这篇关于如何使用AJAX加载下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文