SmartPart for SharePoint - ASP.NET AJAX Support

There has been a lot of buzz around SharePoint support for ASP.NET AJAX the last couple of days, resulting in some nice posts, even from the Microsoft guys. If you are new to the topic; some required reading:

  • Integrating ASP.NET AJAX with SharePoint (by Mike Ammerlaan)
    Mike clearly described what you need to do to get the ASP.NET AJAX extensions working in a SharePoint site. First install the extensions (of course), then make some changes to the web.config of the SharePoint site.
  • AjaxBasePart: Easy ASP.NET 2.0 AJAX Extensions 1.0 and Office SharePoint Server 2007 (by Eric Schoonover)
    Eric describes how you can make use of ASP.NET AJAX in a SharePoint web part, he posts code for his implementation of a base web part class that supports AJAX. The nice thing about this base web part class is that it dynamically adds the AJAX ScriptManager control to the class (required for the AJAX stuff).

Yesterday evening (very late :-) ) I've created a version of the SmartPart that makes use of the Eric's technique, let me introduce you the SmartPart with AJAX! So basically said: you can create a Web User Control (ASCX) with the Visual Studio Designer, that uses the ASP.NET AJAX extensions and run that user control as a SharePoint web part. At this point in time, it's still a beta version, you can get it from the GotDotNet workspace (releases section). How do you get started? First of all you need to download and install the ASP.NET AJAX Extensions. Next you need to extend your SharePoint site with these extensions, check Mike's post for detailed instructions. You only need to change the web.config, you don't need to add the ScriptManager to the master page! Now you can install the SmartPart (check the Installation guide, or this screencast).

Now you can start building ASP.NET AJAX style user controls and use them in SharePoint! The beta version of the SmartPart ships with a couple of examples, but I've recorded a small screencast (no sound yet) as well, you just need to see AJAX in action, screenshots don't give you an idea about how the web parts behave without postbacks. Just watch the demos and see how easy it is! :-)

To finish of I would like to thank two persons who helped me with this release of the SmartPart. First of all Eric Schoonover for posting the code for his AjaxBasePart and for the support via Messenger. :-) Secondly I'd like to thank my friend and colleague Kevin DeRudder (still no blog?) who introduced me to the wonderful world of AJAX and helped me a lot with the demos.

Here's a screenshot of the Calendar control from the ASP.NET AJAX Control Toolkit, hosted in a SmartPart on a WSSv3 site:



  • The news is that Sharepoint services will support ajax extension 1.0 afer service pack 1

  • VERY COOL!!!!!!!!!

  • Indeed, very cool!
    Is there a workaround for sending parameters to a Smartpart?

  • Very nice!!


    How to default Date Changed?

    ex ) Default Year Style "1970-1979"...Like this..
    1969 1970 1971....

  • Hi,

    Never mind my last comment. It seems that I was a little impatient on the Central Administration > Operations > Solution Management module. I had retracted the old version now and installed the new one.

    Thanks for this once again!


  • Hi,

    I have a query.How do we debug smart part webpart?

  • hi,
    i have difficulties in getting the ajax smart part to work
    on a publishing portal (wcm site) while its working great on a collaboration portal. are there any known issues about that?

    besides that, very cool component!!

  • Hi Jan,

    Nice addition to Smart Part! However, I was trying to put a gridview control into a update panel (as in your screen cast), but when I try to use paging it comes up with the following error:

    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Reponse.Write(), reponse filters, HttpModules, or server trace is enabled.

    Any ideas how to fix this?

    Many thanks in advance,


  • Hi,

    I've tried to use the ReturnOfSmartPart.dll (Smartpart with AJAX) but i recevied an error :

    "Unable to add selected web part(s). A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe."

    Any ideas ?


  • Hi,

    I've created your Textbox-CalendarExtender Demo, but SmartPart write

    Error: unable to load ~\/UserControls\meinKalender.ascx
    Details: Unknown server tag 'ajaxToolkit:CalendarExtender'.

    what's my mistake, what make I wrong?



  • "An unexpected error has occurred"

    I am recieving the above Error when i try to Edit the page with SmartPart AJAX Extension Webpart. I am recieving the same Error when i try to close this webpart or modify this webpart.

    Functionaliy wise Webpart has no problem.

    From Event Viewer i got the following Error Description.

    Error: Failure in loading assembly: ReturnOfSmartPart, Version=, Culture=neutral, PublicKeyToken=9f4da00116c38ec5

    Kindly help me in solving the problem.

  • GotDotNET is effictively gone, anywhere else to obtain AJAX version?


  • How can I download SmartPart? The link is broken.

  • Where can I download SmartPart? GotDotNet site is down.

  • Only 1 issue, i have installed and everything work fine but my webparts make every time a postback ... without using the asyncro from the update panel they reside in...

  • I can not see the "Connections" menu item at all on the smartpart.

    This is funny because all the screencasrs tell its very easy. Can anyone help me?


  • Hi

    I have one smart(having user control) part which is a producer on PageNo1.

    Secondly, I have another smartpart(having user control) on PageNo.2 which is a consumer for smart part on PageNo1.

    Now, the problem is that I am finding "Connections" link coming disabled showing tooltip something as "Connection type not compatiable with other parts of the web page."

    Now the catch is it works prefectly fine when both producer and consumer are on the same page, but does not work if put on different pages.

    My second big concern is that on "Submit" click, I want to move to next page and then show the consumer data fetched from producer on PageNo1.

    Please Suggest. It is too critical for my application.

  • Hi,

    Trying to create this calendar demo. Followed all the directions given. I am getting

    "Unknown server tag ajaxToolkit:CalendarExtender" error when trying to bring up the calendar in the web part. What am I missing?


  • Hi Jan,

    Your SmartPart is awesome. Did you had any issues with web part pages that have the smartpart loaded with an user control not running the Ajax scripts for users that are not allowed to customize the page? Like only Team Members not Team Visitors.

    Thanks again for you your tremendous work,

  • Hi All
    I Tried everything as mentioned in the Article when I go to the site click on SmartPart " Open tool Pane " > User Control to display I see that my creared user control is not appearing its says" Could not load BasicDemo.ascx " Any Idea what i am doing wrong. Any help will be appriciated.
    Thank You

  • Hi,
    Please le me know, from where can I download SmartPart with AJAX, as the GotDotNet URL provided in this article has been phased out and I couldn't find this SmartPart anywhere else.

    Pls let me know ASAP, as I need this urgently.


  • I've followed all the steps required. I've managed to add the Smart Part into my SharePoint Server page. But when I click a button that supposed to update a textbox.text, nothing happens.
    Anyone knows why?

  • I've tried to use the ReturnOfSmartPart.dll (Smartpart with AJAX) but i recevied an error :

    "Unable to add selected web part(s). A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe."

  • Jan, Thank you. This is a great tool!!

  • Hi there
    I´ve tried to run the exact same example with the button and the timer. But the update panel does not update anything though the things I want to happen in the button click event, they do actually happen, but the stuff in the update panel isnt updated.
    Can anyone please help on this issue.

    Thanks in advance Amir

  • i was getting a "unespect erro..." in the sharepoint when using ajaxtoolkit components , i saw the erro in the log file:

    w3wp.exe (0x0D14)
    0x0D5C SharePoint Portal Server Runtime 7pma

    Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler().
    Exception information: Exception information: System.NotSupportedException:
    This page is missing a HtmlHead control which is required for the CSS stylesheet link that is being added.
    Please add
    at AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control)
    at AjaxControlToolkit.ExtenderControlBase.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.AddedControl(Control control, Int32 index)
    at System.Web.UI.ControlCollection.Add(Control child)
    at SmartPart.Sm...

    in my master page i have but in the page that i was adding this acx i didn't so i put the on that page and it solve the problem
    why this ?

  • Hi,

    I've created your Textbox-CalendarExtender Demo, but SmartPart write

    Error: unable to load ~\/UserControls\meinKalender.ascx

    Details: Unknown server tag 'ajaxToolkit:CalendarExtender'.

    what's my mistake, what make I wrong?



  • is there a way to change the localization of the ajaxsmartpart?
    e.g. i ve dutch calandercontrol and i would like to show this calander in dutch format but scriptmanager in ajaxsmartpart is localizied in english format and i would like to change it. How?? any help??

Comments have been disabled for this content.