使用AJAX的下拉列表没有回发 [英] Dropdown list using AJAX without postback

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

问题描述

我有一个ddlcountry形式的下拉列表.我希望当我在下拉列表中选择一个国家名时,它打开另一个包含该国家的州名的下拉列表.我在sql server2005中制作了两个表.一个表包含countryid,countryname和States.another

I have a dropdownlist in a form ddlcountry.i want that when i select a countryname in dropdownlist it open another dropdownlist containg statenames of that country.i have made two tables in sql server2005.one containing countryid, countryname and states.another containg stateid their respective countryid and states.how can i do this using AJAX without doing postback.kindly help me.

推荐答案



一种选择是使用AJAX工具包中的级联下拉列表.

链接
Hi,

One option would be to use the cascading dropdown list from the AJAX toolkit.

link


这篇关于使用AJAX的下拉列表没有回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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