In this post we will discuss about SharePoint AJAX Toolkit. Also you can check out my previous posts on:
The SharePoint AJAX Toolkit is a developer framework for writing AJAX code for WSS and Microsoft Office SharePoint Server (MOSS) by using the ASP.NET AJAX Library.
It includes a core script library for client-side data loading and XSLT transformations, base Web Part classes targeted for AJAX code, and a Solution Package installer that registers the required elements in web.config.
This separates development projects into two categories
1- API-related components, including XML data streams and Web service endpoints.
which loads data from a given URL and performs a delegate callback upon completion by utilizing the Sys.Net.WebRequest object internally.
element Defines the HTML element to which the behavior is added
LoadXml(xmlUrl) Loads XML data specified by the xmlUrl parameter
LoadXsl(xmlUrl) Loads XSL data specified by the xmlUrl parameter
set_Xml(XMLDOM) Sets the manually loaded XMLDOM to the XML data source
set_Xsl(XMLDOM) Sets the manually loaded XSLT style sheet
Render() Redraws the component; automatically called when both the XML and XSL data sources are loaded
set_Refresh(Number) Sets the refresh interval in milliseconds
Connection Specifies the ID of the optionally connected component
Within a Web Part, we create the XmlComponent instance based on a placeholder that is rendered in the RenderContents method.
The XML Web Part in the SharePoint AJAX Toolkit handles this for you in the Web Part’s RenderContents method and serves as a pattern for custom AJAX Web Parts.