Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to stop UpdatePanel from causing whole page postback


XML
<asp:UpdatePanel ID="jp" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                                             <ContentTemplate>

<asp:Label ID="Label4" runat="server" Text='<%#Eval("inserted_date")%>' />

<asp:Label ID="lblComment" runat="server" Text='<%#Eval("comments") %>'/>

XML
<ul>
                     <li><asp:LinkButton ID="link1" runat="server" CommandArgument='<%#Eval("product_id") %>' CommandName="five_str" OnCommand="fivestar_Command" ForeColor="Green">
                                  4 and 5 star rated certified buyer reviews
                                 </asp:LinkButton></li>
                     <li><asp:LinkButton ID="link2" runat="server" CommandArgument='<%#Eval("product_id") %>' CommandName="three_str" OnCommand="fivestar_Command" ForeColor="Green">
                                  2 and 3 star rated certified buyer reviews
                                 </asp:LinkButton>   </li>
                     <li><asp:LinkButton ID="link3" runat="server" CommandArgument='<%#Eval("product_id") %>' CommandName="thre_str" OnCommand="fivestar_Command" ForeColor="Green">
                                  1 star rated certified buyer reviews
                                 </asp:LinkButton>   </li>
                 </ul>



<asp:Repeater ID="repeat" runat="server" OnItemDataBound="repeat_ItemDataBound" >
<HeaderTemplate>
View all reviews(<%=top_view%>)



XML
<Triggers>

                                             <asp:AsyncPostBackTrigger ControlID ="link1" EventName="Click" />
                                              <asp:AsyncPostBackTrigger ControlID ="link2" EventName="Click" />
                                                <asp:AsyncPostBackTrigger ControlID ="link3" EventName="Click" />

                                          </Triggers>





Whenever I click the button, sure the panel updates - but the whole page posts back like label values also ! I can see the whole page flashing. What the heck am I doing wrong?
Posted
Comments
Member 10918596 4-May-15 5:41am    
when i click link button repeater only refresh bt whole page posts back. how to solve this issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900