ASP UpdatePanel Ajax问题 [英] Asp UpdatePanel ajax Problem
问题描述
我的页面上有两个updatepanel.每个面板都有一个组合框,第一个面板有一个组合框,其中包含国家/地区列表.第二个updatepanel具有一个组合框,其中包含与在国家(地区)组合中选择的国家相对应的州列表.我必须根据国家组合中选择的国家来加载州.
在包含状态组合的updatepanel中,将Country组合设置为触发器.
如果我在国家/地区组合中更改国家/地区,则会出现错误消息
Hi,
I have two updatepanel in my page. Each panel has one combobox, first panel has a combobox, which contains list of countries. Second updatepanel has a Combobox, which contains list of states corresponding to the country selected in country combo. I have to load the states dependa upon the country selected in country combo.
In the updatepanel, which contains the state combo the Country combo is set as trigger.
If I change the country in the country combo, I got a error that is
Error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsUpdated[1]
Source File: http://pc120:48888/ScriptResource.axd?d=wgiqfp3LEsrSw_pGRpvCxI-_nZeggWbl-wt2kQbQ4BN74pL4ghG5Tvbi5sE2Efrxr54PM001FpPygSTRUD5i_Y_ikBIQHMnmE0C50-0_3qB-OTm8eh6V-96HEs66Z90m0&t=ffffffffb951fb26
Line: 127
请提供解决此问题的方法.
Please give a solution for this problem.
推荐答案
发布一些代码,以便我们可以确切地了解问题所在.
其他请看实现国家/州/城市下拉菜单的简单方法在ASP.NET中列出 [ ^ ]
Post some code so we can get what exactly problem is.
Else have a look Simple Way to Implement Country/State/City Dropdown List in ASP.NET[^]
这篇关于ASP UpdatePanel Ajax问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!