本文介绍了更新面板未使用.Update()方法进行更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有两个更新面板。第一个更新面板有下拉列表,另一个有转发器控件。

在下拉列表的SelectionIndexChanged事件中,我是绑定转发器,但更新是不一致的。





使用upAgencyRatings.Update(); ddlCompany_SelectionIndexChanged事件中的方法。



Hi,

I have two update panels. The first update panel has drop down list and the other has repeater control.
On SelectionIndexChanged event of dropdownlist I am binding repeater, but the updation isinconsistent.


Using upAgencyRatings.Update(); method in ddlCompany_SelectionIndexChanged event.

<asp:UpdatePanel runat="server" ID="upCompany" UpdateMode="Conditional">
 <ContentTemplate>
 <asp:DropDownList ID="ddlCompany" runat="server" CssClass="dropdown" Width="260px"
   ToolTip="Company" AutoPostBack="true"   OnSelectedIndexChanged="ddlCompany_SelectedIndexChanged">
</asp:DropDownList>
<ajaxControls:ListSearchExtender ID="lseCompanySearcher" QueryPattern="contains"
 runat="server" TargetControlID="ddlCompany" PromptCssClass="listSearchPrompt">
</ajaxControls:ListSearchExtender>
<asp:RequiredFieldValidator ID="rfvCompanyID" runat="server" ControlToValidate="ddlCompany"
ErrorMessage="Company is required." Display="None" SetFocusOnError="true"></asp:RequiredFieldValidator>
</ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="upAgencyRatings" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Repeater ID="rptrAgency" runat="server" OnItemCommand="rptrAgency_ItemCommand"
OnItemDataBound="rptrAgency_ItemDataBound">
</asp:Repeater>

推荐答案



这篇关于更新面板未使用.Update()方法进行更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 13:24