如何将 UserId 参数添加到 SharePoint 中 XmlUrlDataSource 的查询字符串?
我有一个使用查询字符串参数 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够通过设计菜单中控件(即 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.