下拉列表(更新面板中)导致完全回发! [英] Drop Down List (in Update Panel) causing FULL PostBack!

查看:151
本文介绍了下拉列表(更新面板中)导致完全回发!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我的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>

在下拉列表之前的方式有一个DIV(HTML一个),然后几个ASP:小组。 我不明白这是为什么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 ?!

任何想法?谢谢

推荐答案

我有同样的问题... altho它没有显示在复制code在这里,检查,以确保你没有任何控制的ClientIDMode =静态在UpdatePanel内....让他们的继承

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

这篇关于下拉列表(更新面板中)导致完全回发!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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