Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
on the button named "cmdSubmitCommentInRestReply" click of it, i want to change the data of child repeater of "rptRestaurantReviewReply",
but it got affected after another postback.

thanks in advance, and sorry if it seems you messy code.

What I have tried:

ASP.NET
<pre lang="c#">
<asp:UpdatePanel ID="upRestReview" UpdateMode="Conditional" ChildrenAsTriggers="false" runat="server">
<ContentTemplate>
<asp:Repeater ID="rptRestaurantReview" runat="server" OnItemCommand="rptRestaurantReview_ItemCommand" OnItemDataBound="rptRestaurantReview_ItemDataBound" OnItemCreated="rptRestaurantReview_ItemCreated">
<ItemTemplate>
<asp:LinkButton Text="Publish Reply" ID="lnkBtnSubmitCommentRestReview" CommandArgument='<%# Eval("intPlatformRestFeedbackID") %>' CommandName="cmdSubmitCommentInRestReply" runat="server" />
                                                                                                        
<asp:UpdatePanel ID="uprptRestaurantReviewReply" UpdateMode="Always" runat="server">
<ContentTemplate>
<asp:Repeater ID="rptRestaurantReviewReply" runat="server" OnItemCommand="rptRestaurantReviewReply_ItemCommand">
<ItemTemplate>
                                                                                                    <asp:Label Text='<%# Eval("strCountTime") %>' ID="lblFeedbackReplyTimeago" runat="server" />
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lnkBtnSubmitCommentRestReview" />
</Triggers>
</asp:UpdatePanel>
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="rptRestaurantReview" />
<asp:AsyncPostBackTrigger ControlID="btnDoneRestFeedback" />
</Triggers>
</asp:UpdatePanel></pre>
Posted
Updated 23-Oct-16 0:35am
v2

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