Install Microsoft Practices Spg Ajaxsupport Dll Injector

 admin  
Dll

SPKoder on Mon, 16 Jul 2012 22:14:22Hi all,I want to use AJAX UpdatePanels in my SharePoint webparts. Therefore, according to, I should be using the SafeScriptManager.To use this control, I need to reference Microsoft.Practices.SPG.AJAXSupport.dll.The problem is that I can't seem to find this dll file. From what I've read, it should be in the SharePoint Guidance Library 2010.

I downloaded the library from.I think I have to manually build the project, but I don't know which project to build. Can anyone point me in the right direction?Thank you in advance! SPKoder on Tue, 17 Jul 2012 15:18:29Is the SafeScriptManager required in SharePoint 2010? I just realized that the SafeScriptManager article referenced in my question was written for SharePoint 2007.In Microsoft's, they note: /// For this to work, there must be a control on the page. In/// SharePoint 2010, this is including in all master pages.

Unless you are using/// a custom master page that doesn't include a script manager, you can use AJAX/// controls in Web Parts without creating it.Therefore, should I have to do anything special to get AJAX to work?If I have one web part with an UpdatePanel on my SharePoint page, everything seems to work fine. If I have two web parts with UpdatePanels, neither one will perform an async postback.

SPKoder on Tue, 17 Jul 2012 15:42:16Ooops. It appears that I've been barking up the wrong tree.It turns out that my async postback-triggered code was throwing an unhandled exception. The exception did not appear on the screen, though, unless I triggered a full-page postback on the page. Therefore, from my point of view, it looked like the async postbackwasn't occurring, when it really was occurring triggering an error and preventing further async postbacks.So, AJAX seems to work OOTB of the box in SharePoint 2010 after all. Cool.Sorry for leading you all down the wrong track! SPKoder on Mon, 22 Oct 2012 23:56:31Hi Aswin,From my experience, there is no need to do anything with the script manager. SharePoint already handles this for you within the master page.

Install Microsoft Practices Spg Ajaxsupport Dll Injectors

Wrap the controls you want to postback asynchronously in an UpdatePanel. I've gotten into the practiceof explicitly defining all the triggers in my UpdatePanel (as sometimes it doesn't seem to work without it). MSDN documentation on UpdatePanel is.Watch your error handling in the async postbacks.

My confusion arose from an error that would have given an error screen if it was a full page postback, but being an async postback just stopped the postback from completing. Therefore, I thought it was notposting back at all. In actuality, it was posting back and encountering an error while executing the postback event. Maybe start with a simple postback event to see if postback is occuring at all. Then, add in any more complex code you may have.Good luck!

   Coments are closed