如何将 UserId 参数添加到 SharePoint 中 XmlUrlDataSource 的查询字符串?

发布于 2024-08-13 02:12:53 字数 174 浏览 5 评论 0原文

我有一个使用查询字符串参数 UserId 返回 XML 数据的 aspx。此 UserId 应是 SharePoint 当前用户。

我创建了数据源并拖动到页面,但我不知道如何将参数添加到数据源,以便它发送当前的用户 ID。我尝试在数据源参数网格中添加参数,但是当调用 aspx 时,它始终使用默认值而不是当前用户 ID

I have an aspx that returns XML data using the query string parameter UserId. This UserId should be the SharePoint current User.

I create the datasource and dragged to the page, but i don't know how to add the parameter to the datasource, so that it sends the current User Id. I tried to add the parameter in the datasource parameters grid but when the aspx gets called it always uses the default value and not the current user id

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

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

发布评论

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

评论(1

小情绪 2024-08-20 02:12:53

您应该能够通过设计菜单中控件(即 DataFormWebPart)的上下文菜单添加参数来完成此操作。

You should be able to do this by adding a parameter through the context menu of the control (i.e. the DataFormWebPart) in design menu.

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