将 SharePoint 文档库集成到 ASP.NET 页面中

发布于 2024-08-05 12:33:47 字数 52 浏览 6 评论 0原文

有什么方法可以从 ASP.NET 页面使用 SharePoint 文档库和文档共享功能吗?

Is there any way that I can use SharePoint document library and document sharing functionality from an ASP.NET page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

递刀给你 2024-08-12 12:33:47

您可以通过 3 种方式让独立 ASP.NET(独立意味着未集成到共享点中)与共享点交互。

  • 1 使用SharePoint 对象模型(sharepoint APi dll)。这种方式允许您控制 ASP.NET 站点与 SharePoint 交互的每个部分(文档安全性等)。主要缺点是您的 ASP.NET 站点需要在与 SharePoint 相同的服务器上运行(或者如果使用共享点)在场中任何在该场中运行 sharepoint 的计算机)。在任何其他计算机上运行时,仅包含 SharePoint DLL 将不起作用(即使该计算机也安装了 sharepoint,但不是您想要与之通信的场的一部分!)

  • 2 Web 服务。这些 OOTB 服务可以在任何地方使用,但功能不是很广泛。它们允许您执行大量操作并检索大量数据,但当涉及到更细粒度的控制时,它们就无法做到这一点。不过,这可能足以满足您想要做的事情。

  • 3 使用 Web 服务并创建您自己的 Web 服务,将其部署到 Sharepoint,以执行 OOTB 服务无法完成的任何任务。不过,这需要以部署自定义代码/程序集的形式访问 sharepoint 计算机。

There's 3 ways you can have your standalone ASP.NET (standalone meaning not integrated into sharepoint) interact with sharepoint.

  • 1 using the SharePoint object model (sharepoint APi dll's). This way allows you to control every part of how your ASP.NET site interacts with SharePoint (document security etc.) The major drawback is that you ASP.NET site needs to be running on the SAME SERVER as SharePoint (or if sharepoint is used in a farm any machine that is running sharepoint in that farm). Simply including the SharePoint DLL's will NOT work when run on any other machine (even when that machine also has sharepoint installed but is not part of the farm you want to communicate with!)

  • 2 Web Services. These OOTB services can be used from anywhere but are not very extensive functionality wise. They allow you to perform a lot of actions and retrieve a lot of data, but when it comes to more finegrained control they just don't cut it. It might be enough for what you want to do though.

  • 3 Use web services and create your own webservice that is deployed to sharepoint for any tasks not doable with the OOTB services. This requires access to the sharepoint machine in the form of deploying custom code / assemblies though.

遥远的绿洲 2024-08-12 12:33:47

我假设您的 asp.net 应用程序正在另一台服务器上运行,因为如果情况并非如此,那么直接使用 SharePoint 功能可能是最简单的,并且可能将您的应用程序包含到 SharePoint 中

SharePoint 通过 Web 服务,这样您就可以通过这些获取、添加、删除和更新信息。

I assume that your asp.net application is running on another server because if thats not the case the it would probably be easiest to just use the SharePoint functionality directly and maybe include your app into SharePoint

SharePoint exposes a lot of it's functionality through Web Services, so you can get, add, delete and update information through these.

不醒的梦 2024-08-12 12:33:47

您可以使用 IFrame 将任何 SharePoint 页面包含到另一个门户的页面中。主要问题是您将在该 IFrame 中获得 MOSS 导航,这通常是不需要的。为了克服这个问题,您可以创建一个特殊的 MOSS 页面来隐藏所有这些元素并仅显示您想要公开的元素。为此,您可以创建一个“最小”母版页和一个带有单个 Web 部件区域的简单布局。

You can include any SharePoint page into a page in another portal using an IFrame. The main issue there is the fact that you will get the MOSS navigation in that IFrame, which typically is not desired. To overcome that, you can create a special MOSS page that hides all those elements and show just the element you want to expose. To accomplish that, you can create a “minimal” master page and a simple layout with a single web part zone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文