Integrating ASP.NET AJAX with SharePoint
2010-02-25 15:52
399 查看
Integrating ASP.NET AJAX with SharePoint
上面的文章介绍了ASP. NET AJAX 1.0的使用
如果你的机器安装的是3.5的版本,就需要修改一下了,基本流程一致。
1. Add a <sectionGroup>element to the <configSections>tag:
others
Adding a ScriptManager into a SharePoint MasterPage
To do this, open up the master page for your site. Typically, this will be located at <site url>/_catalogs/masterpage. You can edit this file by opening it in an editor such as Microsoft SharePoint Designer, or directly in Notepad by opening your master page library via DAV (typically \\server\<pathtosite>\_catalogs\masterpage.)
Add the following into the markup of your page. A recommended location is right beneath the WebPartManager registration (search for <WebPartPages:SPWebPartManager id="m" runat="Server" />):
<asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
上面的文章介绍了ASP. NET AJAX 1.0的使用
如果你的机器安装的是3.5的版本,就需要修改一下了,基本流程一致。
1. Add a <sectionGroup>element to the <configSections>tag:
others
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <remove name="ScriptModule" /> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <remove name="ScriptHandlerFactory" /> <remove name="ScriptHandlerFactoryAppServices" /> <remove name="ScriptResource" /> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </handlers> </system.webServer>
Adding a ScriptManager into a SharePoint MasterPage
To do this, open up the master page for your site. Typically, this will be located at <site url>/_catalogs/masterpage. You can edit this file by opening it in an editor such as Microsoft SharePoint Designer, or directly in Notepad by opening your master page library via DAV (typically \\server\<pathtosite>\_catalogs\masterpage.)
Add the following into the markup of your page. A recommended location is right beneath the WebPartManager registration (search for <WebPartPages:SPWebPartManager id="m" runat="Server" />):
<asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
相关文章推荐
- Extending your SharePoint 2007 site with Microsoft ASP.NET AJAX 3.5
- SharePoint And Ajax Technology(4):基于Microsoft ASP.NET AJAX 3.5的扩展2
- Session state cannot be used in ASP.NET with Windows SharePoint Services
- SharePoint And Ajax Technology(4):基于Microsoft ASP.NET AJAX 3.5的扩展
- SharePoint And Ajax Technology(4):基于Microsoft ASP.NET AJAX 3.5的扩展
- SharePoint And Ajax Technology(4):基于Microsoft ASP.NET AJAX 3.5的扩展
- how to integrate ASP.NET codes inside SharePoint
- Many ways to communicate with your database using jQuery AJAX and ASP.NET
- Integrating SharePoint 2013 with ADFS and Shibboleth
- 电子书下载:Pro ASP.NET SharePoint 2010 Solutions: Techniques for Building SharePoint Functionality into ASP.NET Applications
- (Asp.net,ms sqlserver embbed 2005 edition,windows sharepoint services)安装windows sharepoint service惊魂记
- Rapid Business Development: Lightswitch vs. Dynamics CRM vs. SharePoint 2010 vs. ASP.NET MVC 3
- [转]jQuery AJAX pagination plugin with ASP.NET Server Side
- ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5
- ASP.NET WebUserControl to SharePoint WebPart Best Practice (vs2008)
- WSSv3 Technical Articles_使用ASP.NET 2.0 Web Parts和Windows SharePoint Services 3.0
- 讲座展示:TechEd Europe DEV 411 - AJAX Patterns with ASP.NET AJAX(3)
- SharePoint State Machine Workflow +ASP.NET ASPX Form step by step(3)-创建Instantiation Form
- WSSv3 Technical Articles_使用ASP.NET 2.0 Web Parts和Windows SharePoint Services 3.0
- ASP.NET AJAX Programmer's Reference: with ASP.NET 2.0 or ASP.NET 3.5