构建自定义 Web 部件以在 sharepoint 中创建网站?

发布于 2024-10-07 00:01:36 字数 428 浏览 1 评论 0原文

我的任务是为 sharepoint server 2010 创建自定义 Web 部件,用户可以在其中输入有关站点的详细信息。字段包括:标题、描述、包含站点模板列表的下拉列表、包含用户组的列表框和包含站点权限的列表框(完全访问/贡献/只读)。管理员应该能够在一个列表框中选择一个/多个组,并使用这些组填充权限列表框。

然后,Web 部件将使用指定的模板和指定的权限创建一个站点。这一切是否可以通过自定义 Web 部件来实现?我之前曾使用过提供的 SharePoint Web 服务(不过主要是 Lists.asmx),因此我知道如何使用其中的一些服务。我知道有管理服务,但它是否为我提供了足够的权限/参数来设置所有这些内容?

这是我的第一个自定义 Web 部件,我已经开始在 VS2010 中创建 SharePoint 2010 可视化 Web 部件,在深入研究之前我想听听一些意见。

提前致谢。

I got the task to create a custom web part for sharepoint server 2010 where a user enters details about a site. Fields are: title, description, dropdown with a list of site templates, listboxes with user groups and listboxes with site permissions (full access/contribute/read only). An administrator is supposed to be able to select one/many groups in one listbox and populate the permission listbox with these groups.

The webpart will then create a site with the specified template and the specified permissions. Is all this possible to achieve with a custom web part? I have worked with the provided SharePoint web services before (mostly Lists.asmx though) so I know how to use some of them. I know there is an Admin service but does it provide me with enough permission/parameters to set all these things?

This is my first custom web part and I have started to create a SharePoint 2010 Visual Web part in VS2010 and before I dig too much deeper I'd like to hear some opinions.

Thanks in advance.

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

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

发布评论

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

评论(3

如痴如狂 2024-10-14 00:01:36

当然,您可以通过 cutom webpart 以编程方式创建站点来实现上面提到的所有内容

Certainly you can achieve all the things you have mentioned above via cutom webpart Progrmatically creating Site

终弃我 2024-10-14 00:01:36

以下是为 Sharepoint 2010 开发 Web 部件的指南

http://anyrest.wordpress.com/2010/12/15/developing-web-parts-for-sharepoint-2010/

Here is a guide for Developing webparts for Sharepoint 2010

http://anyrest.wordpress.com/2010/12/15/developing-web-parts-for-sharepoint-2010/

倾城°AllureLove 2024-10-14 00:01:36

是的,这都是可能的。您甚至不必使用 SharePoint Web 服务。由于 Web 部件将直接在 SharePoint 上运行,因此您可以访问 SharePoint 的所有服务器 API。您可以在 http://msdn.microsoft.com/ 找到 SharePoint API 的完整文档en-us/library/ee556847.aspx

Yes that's all possible. And you don't even have to use SharePoint webservices. Since the webpart will run directly on SharePoint, you have access to all of SharePoint's server APIs. You can find full documentation for SharePoint APIs at http://msdn.microsoft.com/en-us/library/ee556847.aspx

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