问题描述
我的 AJAX 和 ASP.NET 3.5 有问题:(问题真的很奇怪,因为我在不同的页面上使用相同的东西并且在那里工作正常,但是在这个特定页面上,这不起作用.
I have a problem with my AJAX and ASP.NET 3.5 :(Problem is really weird, as I'm using the same thing on different page and it works fine in there, but on this specific page, this is not working.
这是我所拥有的:
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" Visible="true" RenderMode="Inline">
<ContentTemplate>
<asp:DropDownList ID="ddlNewService_PortTelco" runat="server" Width="250" CssClass="dropdown" AutoPostBack="true" OnSelectedIndexChanged="Provision_PortedTelcoChanged"></asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
在 DropDown 之前的路上有一个 DIV(html 一个),然后是几个 asp:Panel.我不明白为什么这会导致 FULL POST BACK ?!
On the way before the DropDown there is one DIV (html one), and then few asp:Panels.I do not understand why this is causing a FULL POST BACK ?!
有什么想法吗?谢谢
推荐答案
我遇到了同样的问题...虽然这里没有显示在复制的代码中,请检查以确保您没有任何带有 的控件更新面板中的 ClientIDMode=Static .... 使它们继承
i had the same problem... altho it's not showing in the copied code here, check to make sure you don't have any controls with ClientIDMode=Static within the updatepanel .... make them inherit
至少任何可能触发回发的控件
at least any controls that may trigger a postback
这篇关于下拉列表(在更新面板中)导致 FULL PostBack!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!