Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How Update Panel works with repeater LinkButton

$
0
0
<div></div> <div>
<div><asp:UpdatePanel ID="updatePanelbooksGridView" runat="server"><ContentTemplate><asp:GridView ID="booksGridView" OnPageIndexChanging="booksGridView_PageIndexChanging" runat="server" AllowPaging="True" PageSize="3"
                    CellPadding="4" ForeColor="#333333" GridLines="None"><AlternatingRowStyle BackColor="White" ForeColor="#284775" /><EditRowStyle BackColor="#999999" /><FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /><RowStyle BackColor="#F7F6F3" ForeColor="#333333" /><SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /><SortedAscendingCellStyle BackColor="#E9E7E2" /><SortedAscendingHeaderStyle BackColor="#506C8C" /><SortedDescendingCellStyle BackColor="#FFFDF8" /><SortedDescendingHeaderStyle BackColor="#6F8DAE" /></asp:GridView></ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="booksLinkButton" EventName="Click" /></Triggers></asp:UpdatePanel></div><div><asp:UpdatePanel ID="updatePanelRepeater" runat="server"><ContentTemplate><asp:Repeater ID="booksRepeater" runat="server"><ItemTemplate><asp:LinkButton ID="booksLinkButton" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%#Eval("Value") %>'
                            Enabled='<%#Eval("Enabled") %>' OnClick="booksLinkButton_Click"></asp:LinkButton></ItemTemplate></asp:Repeater></ContentTemplate></asp:UpdatePanel></div>
I got error </div><div></div><div>
A control with ID 'booksLinkButton' could not be found for the trigger in UpdatePanel 'updatePanelbooksGridView'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: A control with ID 'booksLinkButton' could not be found for the trigger in UpdatePanel 'updatePanelbooksGridView'.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
Can anyone help me how updatepanel works with repeater.</div> <div></div> <div>Thanks in advanced...</div> <div></div> <div></div>

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>