Satyam Computer Services Ltd. Portfolio Management Information Ajax Implementation Version 1.0
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
Revision History Date 03-Dec-2007
Confidential
Version 1.0a
Description First Draft
Satyam Computer Services Ltd, 2008
Author Satyam
Page 2 of 12
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
Table of Contents AJAX Implementation in MOSS 2007 SP1
4
Modifications to be done in the MOSS 2007 Server SP1
4
1. Automated Installation (Solution Deployment)
8
2. Manual Installation
9
3. Optional: Add an assembly reference in the web.config
Confidential
Satyam Computer Services Ltd, 2008
10
Page 3 of 12
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
Purpose According to Plumtree to SharePoint migration for PMI we needs to cover all possible functionality plus interactivity at user interface side, and currently PT PMI has Ajax implementation to control some of UI and going forward in SharePoint we are trying to achieve same interactivity and use experience on UI side, we are going to use Ajax implementation in PMI SharePoint site
AJAX Implementation in MOSS 2007 SP1 Although lot of AJAX applications are available over internet, we preferred to use the Microsoft’s ASP.NET 2.0 AJAX extensions 1.0 which can be downloaded from Microsoft site http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa1908e2c027f5d6&displaylang=en Detailed information about AJAX Extensions 1.0 can be found http://asp.net/ajax/Default.aspx.
Modifications to be done in the MOSS 2007 Server SP1 1. We require modifications in the web.config of the SharePoint site say if your application falls under http://
:1111/ modify the web.config of this site which will usually reside under C:\inetpub\wwwroot\wss\VirtualDirectories\PortalNumber in our case it is 1111.
Add the following part under: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, Confidential
Satyam Computer Services Ltd, 2008
Page 4 of 12
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
2. Add the following part under: <pages>
3. Add the following part under :
4. Add the following part under: Confidential
Satyam Computer Services Ltd, 2008
Page 5 of 12
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
5. Add the following part under:
6. At the end of web.config add the following part under: <system.web.extensions> <scripting> <webServices> --> --> --> <system.webServer> <modules>
Confidential
Satyam Computer Services Ltd, 2008
Page 6 of 12
Portfolio Management Information Ajax Implementation DD05
Version: 1.0 Date: 03-Dec-2007
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/ rel="nofollow">
7. Before closing web.config we should add the AJAX controls dll to SharePoint Safe Controls, so copy the following part under: <SafeControls> <SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
8. It is time to include the AJAX script Manager to the master page. In my case, I've included the script manager control in the default.master located in the following path: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL So, according to your portal template; locate the right master page file or you can open the master page from the SharePoint Designer under _catalogs folder. After you locate the master page file, open the file then put the following line inside the top of