User-1399352090 posted
Hi,
I have nested repeater.
inside nested repeater i have added update panel and dropdownlist with AsyncPostBackTrigger.
and also i have added updateprogress panel. but if change selected index of dropdown the updateprogress showing in all rows at a time.
here is my code:
ASPX:
<asp:Repeater ID="rptUser" runat="server">
<ItemTemplate>
<table>
<asp:Repeater ID="rptAddress" runat="server">
<ItemTemplate>
<tr>
<td>
<!--User image-->
<img src="/images/profile.jpg" height="200px" alt="icon"/>
</td>
<td>
<!-- User Address List-->
<asp:UpdatePanel ID="updProductAddressList" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlAddress" OnSelectedIndexChanged="ddlAddress_SelectedIndexChanged" AutoPostBack="true" runat="server">
<asp:ListItem Value="1" Text="address one"></asp:ListItem>
<asp:ListItem Value="2" Text="address two"></asp:ListItem>
<asp:ListItem Value="3" Text="address there"></asp:ListItem>
</asp:DropDownList>
<!--Show address details based on dropdown selection-->
//address details//
<!--end address details-->
<asp:UpdateProgress ID="updateProgress" runat="server">
<ProgressTemplate>
<div style="text-align: center;">
<img src="/images/loading-animation.gif" alt="loading.." />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlAddress" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</ItemTemplate>
</asp:Repeater>
if i use AssociatedUpdatePanelID="updProductAddressList" ClientIDMode="AutoID"
then updateprogress not showing. if i remove AssociatedUpdatePanelID
then is showing in all rows
Please help me.
appreciate for quick response