如何在asp.net中使用回调运行sql查询? [英] how to run sql query with callback in asp.net?

查看:105
本文介绍了如何在asp.net中使用回调运行sql查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中使用回调运行sql查询?



i想从sql加载然后选择''省''下拉列表过滤''城市''dropdownlist?

解决方案

在ASP.Net的上下文中,您发布的问题是一个非常基本的问题,因为作为Web开发人员使用ASP.Net来创建动态应用程序,这类功能是第一个需要注意的。您可以在谷歌上搜索使用C#在ASP.Net中进行数据绑定以获得开始。我还建议你在ASP.Net上找一本好书并尽快开始。开始编写一些代码,当你遇到代码中的某些东西时,我们都在这里解决它。但是,期望我们用勺子给你提供解决方案是浪费时间。我很抱歉,如果我说了一些令人反感的。
时使用的SelectedIndexChanged是回传跑!
不回调的关键字你正在寻找,你需要的层叠下拉

你看这里: HTTP ://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx [ ^ ]


how to run sql query with callback in asp.net?

i want to load from sql and then after select ''province'' dropdownlist filter ''city'' dropdownlist ?

解决方案

In the context of ASP.Net the question you have posted is a very basic question because as a web developer using ASP.Net to create dynamic applications, this type of functionality is the first to be aware of. You may search "DataBinding in ASP.Net using C#" on google to get a start. I would also suggest to get a good book on ASP.Net and start as soon as possible. Start writing some code and the moment you are stuck with something in your code we all are here to solve it. But, to expect that we willl spoon feed you with solutions is a waste of time. I am sorry if I have said something objectionable.


when use SelectedIndexChanged is postback run!


Not the callback is the keyword you are looking for, you need Cascading Dropdown.
Look here: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx[^]


这篇关于如何在asp.net中使用回调运行sql查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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