Update panel and postback issue in sharepoint

I have a simple form which have some dropdownlists and textboxes in it. It works well when I run it as .net web project.

when I move the project to sharepoint and add whole design part in update panel it works unstable.I start filling up form and choose some dropdownlists which fire postback, some times forms comes to its first state(all textboxes and other stuff goes empty) but some times(when I fill the form fast and choose the dropdownlists first) it works as it should.

If I remove update panel in form while working in sharepoint it works too.

So I how can I make sharepoint 2013 and updatepanel work stablized?

Thank you for the answers.

May 23rd, 2013 11:04am

If we use AJAX UpdatePanel control on a SharePoint page or in a Web Part even though by default, this control will not work these standard sharepoint components because of the differences in the postback mechanisms that are used by SharePoint and ASP.NET.

<%@ Register
   Assembly="Microsoft.Practices.SPG.AJAXSupport, Version=, Culture=neutral, PublicKeyToken=8768CCAE1C3C9EB2"
   Namespace="Microsoft.Practices.SPG.AJAXSupport.Controls" %>

<spg:SafeScriptManager ID="SafeScriptManager"
          EnableUpdatePanelSupport = True

<asp:UpdatePanel runat=Server id=MyUpdatePanel>

Try using the sharepoint-ajax related assemblies in the page and leverage the SafeScriptManager for the updatepanel

Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2013 11:48am

Thank you for the answer.

I copied your code to my ascx file but I got unknown element error for <spg:SafeScriptManager

I could not get what do you mean by ajax related assemblies, and how to fix this problem.

May 23rd, 2013 1:50pm

You need to download the SharePoint Guidance Library from Microsoft Patterns and Practices team. This will fix the error that you are getting


In Visual Studio, add a reference to Microsoft.Practices.SPG.AJAXSupport.dll. Add a SafeScriptManager control to your page and set the EnableUpdatePanelSupport flag to true. This changes the postback script that is needed for the UpdatePanel control to work in a SharePoint environment.


Hope this helps you to download the respective assemblies.

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2013 4:50pm

I am close to solution but could not get it. I downloaded spg and tried to open spg\Source\Microsoft.Practices.SPG2 but Microsoft.Practices.SPG.AJAXSupport.csproj and Microsoft.Practices.SPG.SubSiteCreation.Features.csproj could not loaded. so I could not build the project and make assemblies work. I am using vs2012 and SP2013 on windows server 2012. I guess the solution that you prefer is for sharepoint 2010 or 2007. Am I right?

Thank you

  • Edited by Emre_Tuncer Wednesday, May 29, 2013 4:31 PM
May 29th, 2013 7:49am

Hi ,

we are facing the same issue, were you able to resolve it? if yes, Please reply it will help us a lot.

Thanks in advance.

Free Windows Admin Tool Kit Click here and download it now
December 18th, 2013 5:26am

Hi ,

Could you please guide me if you managed to solve this issue. We are facing this similar issue of SharePoint 2013 and I am unable to use update panel on the application page as the page reloads itself if left idle of 30-40 secs

I tried to find the Microsoft.SPG.Ajaxsupport.dll but could not find the correct project to down load and compile and get the dll for use.

Please advise.

Any help will be appreciated.




June 30th, 2014 8:57am


Did anyone solved above problem? we are facing same issue because of update panel in sharepoint 2013 ,please help us.



Free Windows Admin Tool Kit Click here and download it now
November 18th, 2014 12:12pm

As per the issue reported below can be resolved if we edit the settings on IIS for Form Authentication.

Please increase the time (sec ) or disable cache.

This will resolve the issue . This has been tested on my SharePoint 2013 farm where the farm is on distributed enviournment

July 6th, 2015 3:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics