将参数传递给 Web 部件

发布于 2024-08-14 04:06:46 字数 87 浏览 2 评论 0原文

我正在使用 SmartPart 1.3 开发 SharePoint 的 Web 部件。我需要将参数传递给我的 Web 部件,例如列表名称。也许有人知道该怎么做?

I'm using SmartPart 1.3 to develop web-parts to SharePoint. I need pass parameter to my web-part for example list name. Maybe anybody know how to do it?

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

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

发布评论

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

评论(1

北斗星光 2024-08-21 04:06:46

我相信您可能会要求选择通过自定义 ToolPart(WebPart 选项 => 修改共享 WebPart)配置 Web 部件,并能够在“侧边栏”的字段中设置列表名称。

查看 在 msdn 上执行工具部件的通用方法< /a>.在 SmartPart 中,您没有类似功能的方式来创建工具部件,您可以使用通用方式。我还在他们的代码项目页面中找到了此链接,其中包含 C# 示例(需要调整)

I believe you might be asking to have the option to configure your webpart via a custom ToolPart (WebPart Options => Modify Shared WebPart) and be able to set the list name in a field in the 'sidebar'.

Take a look at the generic way of doing toolparts at msdn. In SmartPart you dont have a feature-like way of creating the toolpart, you can use the generic way. I also found this link in their codeproject page with a C# sample (requires tunning)

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