在数据检索时不加载级联下拉列表 [英] Does not load cascading dropdown at the time of data retrieval

查看:60
本文介绍了在数据检索时不加载级联下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户控件,我正在使用状态和城市的级联下拉菜单。

在数据插入时它完全正常工作但在数据检索时状态不是加载......

cascadingdropdown代码是

i have an user control in that i am using cascading dropdown for states and citys..
At the time of data inserting it is perfectly working but at the time of data retrieval the states does not load......
cascadingdropdown code is

State:
                       <asp:DropDownList ID="ddlCState" runat="server" CssClass="userentry">
                       </asp:DropDownList>
                       <cc1:CascadingDropDown ID="cdlCStates" TargetControlID="ddlCState" PromptText="Select State"

                           ServicePath="~/CasCadingDropDown.asmx" ServiceMethod="GetStates" runat="server"

                           Category="StateId" LoadingText="Loading..." /



>


>

推荐答案

check < a href =http://www.aspsnippets.com/Articles/Creating-Cascading-DropDownLists-in-ASP.Net.aspx>在ASP.Net中创建级联DropDownLists [ ^ ]

如果您仍未能实现,请使用相关代码示例更新问题。

如果您在AJAX Control Toolkit中使用CascadingDropDown控件。关注

将CascadingDropDown与数据库(C#)一起使用 [ ^ ]
check Creating Cascading DropDownLists in ASP.Net[^]
Update the question with relevant code samples if you still failed to implement it.
if you using CascadingDropDown control in the AJAX Control Toolkit. follow
Using CascadingDropDown with a Database (C#)[^]


这篇关于在数据检索时不加载级联下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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