如何解决DropDownLists 事件触发但现在显示被包装在 UpdatePanel 上?
开发过程中遇到DropDownLists 事件触发但现在显示被包装在 UpdatePanel 上的问题如何解决?下面主要结合日常开发的经验,给出你关于DropDownLists 事件触发但现在显示被包装在 UpdatePanel 上的解决方法建议,希望对你解决DropDownLists 事件触发但现在显示被包装在 UpdatePanel 上有所启发或帮助;问题描述
正如我在标题中所说的,我在 UpdatePanel 中有一些 DropDownList,它们的事件会改变彼此的内容。 我在这个 UpdatePanel 中有这些下拉菜单,因为我需要它们不回发或重新加载我的页面,因为我还有一个 fileUpload 控件,我不想在更改任何下拉菜单的 SelectedItem 后丢失其选定的项目。
我在下拉列表的 OnSelectedindexChanged 事件中放置了一个断点,它正在触发并正确执行所有背后的代码,但没有正确显示收费下拉列表。
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="updatePanel1">
<ContentTemplate>
<asp:DropDownList ID="ddl1" runat="server" CSSClass="combo" style="wIDth: 100px;"AutopostBack="True" onselectedindexchanged="ddl1_SelectedindexChanged"></asp:DropDownList>
<asp:DropDownList runat="server" style="vertical-align: mIDdle; wIDth: 175px;" ID="ddl2" AutopostBack="true" onselectedindexchanged="ddl2_SelectedindexChanged" CSSClass="combo"> </asp:DropDownList>
<asp:fileUpload ID="file" runat="server" Size="70" style="wIDth:auto;" />
</ContentTemplate>
</asp:UpdatePanel>
我愿意接受有关如何以其他方式执行此操作的建议。
尚未找到解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)