关于组合框的ado.net问题 [英] ado.net question on combo box

查看:72
本文介绍了关于组合框的ado.net问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两个组合框

一个是州,另一个是区域

如果我们选择一个州,那么自动地,该州的区域将在区域组合框中上诉?

Plz告诉我编码

There is two combo box
one is state and the other is district
If we select one state then auomatically the district of that state will appesr in the district combobox?
Plz tell me the coding

推荐答案

它被称为级联下拉





对于网络,请看这里:

CascadingDropDown演示 [ ^ ]

使用SQL数据库的AJAX级联下拉示例 [ ^ ]

在选择ASP.NET上填充级联DropDownList [ ^ ]



如果没有更新面板,那么你需要使用传统的AJAX - XMLHttpRequest

参考:

AJAX for beginners(第2部分) - 使用XMLHttpRequest和jQuery AJAX实现级联下拉菜单 [ ^ ]





对于Winforms,请看这里:

Winforms窗口中的级联组合框s Forms C#VB.NET [ ^ ]
It''s called Cascading Dropdown.


For Web, look here:
CascadingDropDown Demonstration[^]
AJAX Cascading Dropdown Example using SQL Database[^]
Populate Cascading DropDownList On Selection ASP.NET[^]

If not update panels, then you need to use traditional AJAX - XMLHttpRequest.
Refer:
AJAX for beginners (Part 2) - Using XMLHttpRequest and jQuery AJAX to implement a cascading dropdown[^]


For Winforms, look here:
Cascading ComboBox In Winforms Windows Forms C# VB.NET[^]


这篇关于关于组合框的ado.net问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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