简体   繁体   English

SharePoint 2010和SQL Server 2008

[英]SharePoint 2010 and SQL Server 2008

I am trying to manipulate SharePoint's default calendar to add, edit and delete items and use SQL Server as the data source rather than SharePoint's database. 我试图操纵SharePoint的默认日历来添加,编辑和删除项目,并使用SQL Server作为数据源而不是SharePoint的数据库。 I have worked through the last two days of using SPList and SPListItems but I keep ending up at the same problem. 在使用SPList和SPListItems的最后两天,我已经完成工作,但是我仍然遇到相同的问题。 Once a user clicks +add on SharePoint's calender UI, I want to be able to store that information from the user into SQL Server rather than SharePoint. 用户在SharePoint的日历UI上单击+添加后,我希望能够将用户的信息存储到SQL Server中,而不是SharePoint中。 I've looked through a bunch of MSDN libraries, blogs and other google searches and nothing turns up. 我浏览了一堆MSDN库,博客和其他Google搜索,但没有发现任何问题。 If anyone has done something similar or can help point in the right direction, it would be greatly appreciated. 如果有人做了类似的事情或可以帮助指出正确的方向,将不胜感激。

You need write an Event Receiver for the ItemAdding & ItemUpdating events and attach it to the List(in this case Calendar) and write the code to persist the data to your custom SQL DB. 您需要为ItemAdding和ItemUpdating事件编写一个事件接收器,并将其附加到列表(在本例中为Calendar),然后编写代码以将数据持久保存到自定义SQL DB。

http://msdn.microsoft.com/en-us/library/gg252010.aspx http://msdn.microsoft.com/en-us/library/gg252010.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据库SQL Server 2008链接到Visual Studio 2010 - Linked database sql server 2008 to visual studio 2010 在Visual Studio 2010上连接到远程SQL Server 2008 - Connect to remote SQL Server 2008 on Visual Studio 2010 用C#2010连接到SQL Server 2008的小问题 - Little issue connecting to SQL Server 2008 with C# 2010 通过 installshield 2010 使用 SQL Server 2008 创建安装文件 - Create setup file with SQL Server 2008 via installshield 2010 VS 2010连接到SQL Server 2008:用户“”登录失败 - VS 2010 Connecting to SQL Server 2008: Login failed for user " 将Access 2010转换为SQL 2008 - Convert Access 2010 to SQL 2008 SQL Server关系中一个非常有趣的问题(SQL Server 2008R2,LINQ To SQL,Visual Studio 2010,C#) - A very interesting problem with SQL Server Relationships (SQL Server 2008R2, LINQ To SQL, Visual Studio 2010, C#) 使用Visual Studio Express 2010(甚至2008)设置嵌入式SQL Server? - Embedded SQL server setup up with Visual Studio Express 2010 (or even 2008)? 如何将SQL Server 2008 R2数据库添加到Visual Studio 2010安装文件中? - How to add my SQL Server 2008 R2 database to my Visual Studio 2010 Setup File? C#2010 Express + SQL Server 2008 Express-连接“登录失败” - C# 2010 Express + SQL Server 2008 Express - Connection “Login failed”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM