Search code examples
asp.netajaxupdatepanel

ASP.NET UpdatePanel Error htmlfile: Unknown runtime error, updatePanelElement.innerHTML=rendering


I get this error when debugging my ASP.NET web application after I trigger an UpdatePanel:

ASP.NET htmlfile: Unknown runtime error updatePanelElement.innerHTML=rendering

htmlfile: Unknown runtime error

and "updatePanelElement.innerHTML=rendering" is highlighted in a ScriptResource.axd file.


Solution

  • This seems to happen because I've got my UpdatePanel within an ordered list <ol> container. And I've got list item <li> tags within my UpdatePanel's ContentTemplate.

    <ol>
        <li>...</li>
        <asp:UpdatePanel ...>
            <ContentTemplate>
                <li id="lione" runat="server">...</li>
                <li id="litwo" runat="server">...</li>
            </ContentTemplate>
            <Triggers>
                ...
            </Triggers>
        </asp:UpdatePanel>
        <li>...</li>
    </ol>
    

    It makes sense to me this way, but I guess I'll need to rethink my page layout.