1

I'm using SSRS Action -> Go To Url like this:

="javascript:void(window.open('http://xxx/xxx/Pages/ReportViewer.aspx?%2fDevelopment%2fReport&rs:Command=Render&Parameter="& Parameters!Parameter.Value &"'))"

generated link should be:

http://xxx/xx/Pages/ReportViewer.aspx?/Development/Report&rs:Command=Render&Parameter=Úxxx

I need to somehow escape special characters with diacritics like character 'Ú' in example above. Without escaping this character the above link is broken.

Thanks for you help.

Rutz
  • 109
  • 4
  • 14

2 Answers2

5

You need to URL encode your parameter, however referencing System.Web (as many suggest) is problematic, since later versions of the Reporting Services designer seem to run in a partial trust context, and System.Web does not have APTCA.

Instead, in later framework versions you have the choice of using System.Uri.EscapeDataString or System.Net.WebUtility

See SO question How do you UrlEncode without using System.Web? for examples of both, neither of which require full trust

Community
  • 1
  • 1
piers7
  • 3,924
  • 32
  • 45
2

You need to add Url encoding to your outgoing parameters. This article explains how to reference the library in the report and user UrlEncode() to process your parameters.

Ross Bush
  • 13,809
  • 2
  • 33
  • 52