如何从必应服务中获取国家列表以绑定asp.net中的下拉列表(使用C#) [英] how to get countries list from bing services to bind a dropdownlist in asp.net( usingc#)
本文介绍了如何从必应服务中获取国家列表以绑定asp.net中的下拉列表(使用C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个下拉列表,一个用于国家,第二个用于国家.如何从网络服务绑定国家列表(也许使用Bing Services),根据国家列表,我还需要获取国家列表.任何人都可以在asp.net中提供示例应用程序
谢谢
i have two dropdownlists one for countries and second one for states. how to bind countries list from a webserivce(Maybe using Bing Services), according to country list i need to get states list also. could any one please provide sample application in asp.net
Thanks
推荐答案
对于bing服务,请通过以下链接进行一些R& D:
如何通过纬度和经度从BING map api获取地址(城市,州,国家/地区,邮政编码)?
获取在Bing中使用的所有国家/地区名称Maps SOAP Services
对于级联下拉列表,请尝试以下操作:
使用jQuery和ASP.NET级联DropDownLists
如何在AJAX中使用通过WebService类使用CascadingDropDown控件
现在您需要融合这两个概念.
For bing services do some R&D with the following links:
How to get address(city,state, country, zipcode) from BING map api by latitude and longitude?
Get all country names used in Bing Maps SOAP Services
And for Cascading Dropdownlist try following:
Cascading DropDownLists with jQuery and ASP.NET
How to Use CascadingDropDown Control Using WebService Class in AJAX
And now you need to marge both concepts.
这很棘手
使用以下参考文献
将ASP.NET DropDownList绑定到数据结构 [
It is tricky
Use below reference
Binding ASP.NET DropDownList to data structures[^]
这篇关于如何从必应服务中获取国家列表以绑定asp.net中的下拉列表(使用C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文