Avoid using of UpdatePanel.

Description

The ASP.NET AJAX UpdatePanel control must change the page’s postback behavior to enable support for asynchronous postbacks and partial rendering. However, in a SharePoint application, these modifications cause a JavaScript error. This is because SharePoint attempts to make a similar change.

Here are couple problems with UpdatePanel usage in the SP2010 and SP2007:
  1. Webpart and AJAX – second postback not working in UpdatePanel?
  2. Problem with only first postback working in Chrome from UpdatePanel in Sharepoint site

Resolution

When possible try to avoid using of UpdatePanel, preferring jQuery.ajax() instead.

Links

Integrating ASP.NET AJAX with SharePoint
Walkthrough: Creating a Basic ASP.NET AJAX-enabled Web Part
Using the AJAX Update Panel in SharePoint
UpdatePanel Class

Last edited Jun 18, 2014 at 4:29 PM by dvd73, version 5

Comments

No comments yet.