目前我正在研究一个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.
更多推荐
发布评论