SSRS URL Parameters with ‘&’

Was having an issue with opening a new window from an SSRS url action when the parameter name or value contained an ampersand, thanks to the following MSDN Forums thread

and the javascript escape function problem solved

REPLACE(LTRIM(Parameters!param1.Value(0)),”&”, “‘ + escape(‘&’) + ‘”) +”&param2=”
+REPLACE(LTRIM(Parameters!param2.Value(0)),”&”, “‘ + escape(‘&’) + ‘”)  + “‘,’_blank’))”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s