Here's quite a weird problem:
I've got a TextBox with AutoPostBack="true" and OnTextChanged property set.
The textbox is located inside a Repeater, which in turn is located inside an UpdatePanel.
Problem is - whenever the TextBox postsback, the whole page gets reloaded, instead of the UpdatePanel only.
Here's how the thing looks:
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Repeater ID="itemsRepeater" runat="server">
<HeaderTemplate>
<ul class="lstProducts">
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:TextBox AutoPostBack="true" OnTextChanged="whatever_Click" runat="server" />
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div>
</ContentTemplate>
</asp:UpdatePanel>
Interesting thing is, if I take the TextBox out of the repeater, it refreshes only the UpdatePanel.
So is if I put a Button inside the repeater - only the UpdatePanel gets refreshed.
But whenver I place an AutoPostBack-ing control inside the Repeater, the whole page gets refreshed.
Any help would be welcomed,
Thanks
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Repeater ID="itemsRepeater" runat="server">
<HeaderTemplate>
<ul class="lstProducts">
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:TextBox AutoPostBack="true" OnTextChanged="whatever_Click" runat="server" />
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
<div class="sumofproducts">
<span class="amount-price">
<asp:Label ID="totlaPriceLabel" runat="server" />
?</span> <span class="title-price">??"? ???? ?? ?? ??????</span>
</div>
</ContentTemplate>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Repeater ID="itemsRepeater" runat="server">
<HeaderTemplate>
<ul class="lstProducts">
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:TextBox AutoPostBack="true" OnTextChanged="whatever_Click" runat="server" />
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</ContentTemplate>
</asp:UpdatePanel>
</asp:UpdatePanel>