如何以编程方式向站点添加数据 [英] How to add data to site programmatically

查看:72
本文介绍了如何以编程方式向站点添加数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


首先我要说的是,我对Sharepoint没有太多经验。我们有一个内部Sharepoint站点,用户可以访问并输入数据(少于10个字段)并运行一些关于该数据的报告。这部分一切都很好,但我被要求以
的方式提供一种以自动方式向网站添加数据的方法。这只能在某些情况下完成。大多数数据输入将由访问该网站的用户完成。 


我的问题是,是否可以通过编程方式将数据添加到sharepoint网站(c#)?如果是这样,我该如何做到这一点?我是否直接将数据添加到SQL Server DB?如何识别特定sharepoint站点使用的表?



谢谢

解决方案

您好


SharePoint有编程API。


我想你的意思是用户输入数据到某个列表。


如果您在本地使用SharePoint 2010,则可以使用server api或client api编写一个简单的应用程序。


您需要引用相关的dll。


以下是客户端api的示例。


https://www.c-sharpcorner.com/uploadfile/anavijai/how-到createupdatedelete-的SharePoint-2010-列表项-使用的客户端对象模型/


Hello,

Let me start by saying that I do not have too much experience with Sharepoint. We have an in house Sharepoint site that users can go and enter data (less than 10 fields) and run some reports on that data. All is good with this part, but I was asked to come up with a way to add data in an automated way to the site. This will only be done under certain scenarios. Most of the data entry will be done by users going to the site. 

My question, is it possible to add data to a sharepoint site programmatically (c#)? If so, how do I accomplish this? Do I add data directly to the SQL server DB? How do I identify the tables that are used by the particular sharepoint site?

Thanks

解决方案

Hi

SharePoint has API for programming.

I think what you mean is the users enter data into certain list.

If you are using SharePoint 2010 on premise, you can write a simple application by using server api or client api.

You need to reference related dll.

Here is a example for client api.

https://www.c-sharpcorner.com/uploadfile/anavijai/how-to-createupdatedelete-sharepoint-2010-list-items-using-client-object-model/


这篇关于如何以编程方式向站点添加数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆