InvalidOperationException: PostBack Trigger Cannot Find a Control within the ItemTemplate of a DataList
问题 I would like to trigger a PostBack when the asp:LinkButton "addToCartButton" is clicked (see code below). I have declared a PostBack Trigger with the asp:UpdatePanel "updPnlProductsList" (see code below). <asp:Panel ID="pnlProductsList" runat="server" Visible="false"> <asp:UpdatePanel ID="updPnlProductsList" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div class="featured"> <h3>Product listing</h3> <div class="product clearfix"> <asp:DataList ID="productsList" runat="server"