In my control, I have the following markup:
<div id="pageEditsView" style="margin-left:540px"> <asp:UpdatePanel runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="PageEditList"/> </Triggers> <ContentTemplate> <asp:HiddenField runat="server" ID="CurrentPageId"/> <asp:Label runat="server" ID="EditDisplayLabel" Visible="False">Edits tied to this page:</asp:Label> <br/> <ul> <asp:Repeater runat="server" ID="PageEditList" OnItemCommand="PageEditList_ItemCommand"> <ItemTemplate> <li> <%# ((PageEdit)Container.DataItem).CachedName %> (<asp:LinkButton ID="LinkButton1" runat="server" Text="remove" CommandName="remove" CommandArgument="<%# ((PageEdit)Container.DataItem).Id %>" />) </li> </ItemTemplate> </asp:Repeater> </ul> </ContentTemplate> </asp:UpdatePanel> </div>
Whenever I click the delete link button, it performs a full page postback instead of updating this control panel. My main page has the following settings:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
Other parts of this application (which I inherited, and the old developer who wrote this, no longer exist) seem to make partial page updates just fine. Am I doing something wrong?
source share