如何使用客户端语言(JavaScript)在SharePoint中编写/修改xml文件(how to write/modify a xml file in SharePoint using a cli

编程入门 行业动态 更新时间:2024-10-24 22:23:21
如何使用客户端语言(JavaScript)在SharePoint中编写/修改xml文件(how to write/modify a xml file in SharePoint using a client side language(JavaScript))

目前我正在研究一个ASP.NET项目,我编写了一个C#代码来编写/修改我的XML文档,我用它来构建我的门户网站。 我现在必须将我的项目迁移到SharePoint,在那里我能够读取我的xml文档,但我不知道如何修改它。 有没有办法可以借助JavaScript来实现。 我已经阅读了很多博客,但无法获得任何令人满意的解决方案。 我的同事告诉我,他使用JavaScript使用SharePoint修改了数据库,因此有一种方法可以对XML进行相同的操作。

任何建议将不胜感激。

Currently I'am working on a ASP.NET project and I have written a C# code to write/modify my XML document, which I'am using to structure my portal. I now have to migrate my project to SharePoint, where I'am able to read my xml document but i don't know how to modify the same. Is there any way i can do it with the help of JavaScript.? I have read many blogs, but wasn't able to get any satisfactory solution. My colleague told me that he modified a database using SharePoint using JavaScript so there would be a way to do the same with XML.

Any suggestion would be appreciated.

最满意答案

您正在寻找的是SharePoint JavaScript对象模型 。 这是一个sharepoint库,允许您使用javascript操作sharepoint对象。

SharePoint确实允许您共享文档,因此您可以将xml文档上载到SharePoint库。 但是,如果要构建SharePoint网站,则可能有许多更好的方法来自定义SharePoint网站(如SharePoint列表),而不是使用SharePoint文档库中的xml文件。

What you are looking for is the SharePoint JavaScript object model. This is a sharepoint library that allows you to manipulate sharepoint objects using javascript.

SharePoint does allow you to share documents too, so you could upload an xml document to a SharePoint library. But if you are building a SharePoint site, there are probably a lot better methods to customize it, like a SharePoint list, than using an xml file in a SharePoint document library.

更多推荐

本文发布于:2023-07-06 07:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047324.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   客户端   语言   文件   client

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!