如何使用回发获取dropdownlist值 [英] How to get dropdownlist value with out using postback
本文介绍了如何使用回发获取dropdownlist值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个下拉列表如下
国家/地区下拉列表1
州下拉列表2
当我点击国家dropdownlsit1时,状态dropdownlist2将显示相应的状态。
表示如何使用autopostback
我尝试过的事情:
i have two dropdownlist as follows
Country dropdownlist1
State dropdownlist2
when i click the country dropdownlsit1, in state dropdownlist2 corresponding state will display.
for that how to do with out using autopostback
What I have tried:
i have two dropdownlist as follows
Country dropdownlist1
State dropdownlist2
when i click the country dropdownlsit1, in state dropdownlist2 corresponding state will display.
for that how to do with out using autopostback
推荐答案
使用UpdatePanel
参考这些文章
使用更新面板级联下拉列表 [ ^ ]
使用Asp .Net级联DropDownList [ ^ ]
useUpdatePanel
refer these articles
Cascading dropdown using update panel[^]
Cascading DropDownList with Asp .Net [^]
这篇关于如何使用回发获取dropdownlist值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文