在运行时从Dropdownlist检索数据 [英] Retrieve data from Dropdownlist at run time

查看:92
本文介绍了在运行时从Dropdownlist检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们熟悉提示输入地理位置的表格,例如国家/地区",州/省",城市".选择国家/地区后,该特定位置的州和城市将显示在下拉列表中.我的项目中需要这样的清单.谁知道如何使用sqldatasource做到这一点?我正在使用Visual Web Developer 2008和C#中的代码.

Hi, We are familiar with forms that prompt for our geographic location such as Country,state,City. when the country is selected , the states and cities in that particular location are listed in dropdown lists. I need such a list in my project. Can anyone know how to do it with the sqldatasource? I am working with Visual web developer 2008 and the code in C#.

推荐答案

引用
http://csharpdotnetfreak.blogspot.com/2009/03/populate-dropdown- based-selection-other.html [ ^ ]
http://www.dotnetspider.com/forum /266503-Country-State-City-DropdownList-Using-Asp-.Net-C.aspx [
Refer
http://csharpdotnetfreak.blogspot.com/2009/03/populate-dropdown-based-selection-other.html[^]
http://www.dotnetspider.com/forum/266503-Country-State-City-DropdownList-Using-Asp-.Net-C.aspx[^]


这是一个可能的网站在:

http://www.dbtutorials.com/advanced/populatingdropdown-csharp.aspx [ ^ ]

但是,还有其他数百个站点对此进行了解释!也许您还不了解Google.因此,我将在短期内对此进行解释.转到www.google.com(顺便说一下,这是一个搜索引擎).您可以在此处输入要搜索的关键字.例如,尝试:"asp.net dropdownlist数据库",然后按Enter!就像魔术一样,将会显示很多搜索结果,这可能会对您的研究有所帮助.祝你好运,请将此信息传递给您的朋友.
This is one possible site to look at:

http://www.dbtutorials.com/advanced/populatingdropdown-csharp.aspx[^]

But there are also hundres of other sites that explain this! Maybe you dont know Google yet. So i''ll shortly explain it. Go to www.google.com (this is a search engine by the way). There you can enter keywords which should be searched for. For example try: "asp.net dropdownlist database" and press Enter! Like magic a lot of search results will show up which may help you in your research. Good luck and please pass this information on to your friends.


这篇关于在运行时从Dropdownlist检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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