AJAX 1.0: "Microsoft JScript runtime error: '0.cells' is null or not an object" error in AJAX enabled ASP.NET page.
CAUSE:
- The DIV contained an UpdatePanel with the id “MultiView”. Inside the
ContentTemplate of the UpdatePanel there was a asp:menu Control.
- The Menu Control has these items:
<Items>
<asp:MenuItem Text="Notes" Value="0" ></asp:MenuItem>
<asp:MenuItem Text="Attachment" Value="1"></asp:MenuItem>
<asp:MenuItem Text="Histroy" Value="2"></asp:MenuItem>
</Items>
- Upon Clicking on any of the above three Menu items , we get “0.cells is null or
not an element” .
- Since the menu Control is not supported in a Partial page Update Scenario , We
will not be able to make the asp:menu control work from
within an UpdatePanel.
WORK AROUND:
The only workaround is to remove the asp:menu Control from within the
ContentTemplate of the UpdatePanel.
- Further reference about controls compatible with the UpdatePanel .
https://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx
Comments
Anonymous
August 15, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/08/16/ajax-10-microsoft-jscript-runtime-error-0cells-is-null-or-not-an-object-error-in-ajax-enabled-aspnet-page/Anonymous
August 22, 2007
thanks, this was an issue for me. I should have searched for this artical first when i received the error. Thank You!! KES