SSRS 创建 URL 链接

发布于 2024-09-14 22:37:45 字数 576 浏览 0 评论 0原文

我通过 ASP.NET Web 表单内的 SSRS 报告查看器控件托管 SSRS 报告。对于文本框上的操作属性,我设置以下表达式。

=Parameters!URL.Value & "?customerid=" & Fields!CustomerID.Value 

期望的结果是这样的。

URL =“http://www. google.com/somesamplepage.aspx?customerid=26074C16-BFA2-4610-8D3F-9EF550FE77D1

问题在于 Fields!CustomerID 值是 Guid 数据类型。在这种情况下,SSRS 不会为我显示超链接。但是,如果我使用字段集合中的另一个文本值更新查询字符串,它就可以正常工作。

有什么想法吗?

I am hosting a SSRS report through the SSRS Report Viewer Control inside a ASP.NET web form. For the action property on a text box I am setting the following expression.

=Parameters!URL.Value & "?customerid=" & Fields!CustomerID.Value 

The desired result is something like this.

URL = “http://www.google.com/somesamplepage.aspx?customerid=26074C16-BFA2-4610-8D3F-9EF550FE77D1

The problem is that the Fields!CustomerID value is a Guid datatype. SSRS does not display the hyperlink for me in this scenario. However, if I update the querystring with another text value from the fields collection it works fine.

Any ideas out there?

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

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

发布评论

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

评论(1

若无相欠,怎会相见 2024-09-21 22:37:45

你尝试过吗

=Parameters!URL.Value & "?customerid=" & Fields!CustomerID.Value.ToString()

Have you tried

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