There's a conversation about this error at eggheadcafe.com.
views:
4800answers:
7This 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.
Thanks for the explanation above - I found a solution by wrapping the UpdatePanel with the li that needs to be updated by the event. Hope that helps.
e.g.
<li>
<asp:UpdatePanel runat="server" ID="UpdatePanelCustInfo" UpdateMode="Conditional" RenderMode="Inline">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlCountry" />
</Triggers>
<ContentTemplate>
<label>State:</label>
<asp:DropDownList ID="ddlStateProvince" AutoPostBack="False" runat="server" CssClass="adminInput">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</li>
I have encountered the same issue. In my case Page (Table) was not designed properly. Here is the issue details in my scenario:
<table>
<tr>
<td>
<asp:Label id="Lb1" runat="server"/>
</td>
</tr>
<asp:UpdatePanel id="UP1" runat="server">
<ContentTemplate>
<!-- controls in Update Panel-->
</ContentTemplate>
</asp:UpdatePanel>
<tr>
<td>
<asp:Button id="btn" OnClick="btn_Click" runat="server"/>
</td>
</tr>
</table>
I have changed to
<table>
<tr>
<td>
<asp:Label id="Lb1" runat="server"/>
</td>
</tr>
**<tr>
<td>**
<asp:UpdatePanel id="UP1" runat="server">
<ContentTemplate>
<!-- controls in Update Panel-->
</ContentTemplate>
</asp:UpdatePanel>
**</td>
</tr>**
<tr>
<td>
<asp:Button id="btn" OnClick="btn_Click" runat="server"/>
</td>
</tr>
</table>
Issue resolved moving Update panel in to another table row. So I strongly believe proper screen design should address this type of issues.
I totally agree with the solution suneelk.I faced the same problem and rearranged the layout and its gone. Thanks