ssrs中的javascript window.open无法用于&%26字符

问题描述

作为主题建议,如果我使用编码的%26(&)字符,则由于某种原因javascript window.open函数将无法正常工作。如果我将其直接粘贴到浏览器中,但使用window.open函数启动时不能粘贴,则效果很好。

例如,如果我将其粘贴到地址栏中,则不会有任何问题:

http://Server/reportserver/Pages/ReportViewer.aspx?/ Apps / Report%20Email&pSearchType = 1&pSearchMethod = 3&pSearchTerm = P%20%26%20L&pFirstName =&pLastName = &pSendEmail=1&[email protected] >

但是,如果我在SSRS表达式中使用javascript window.open函数,则它不起作用并且出现错误

=“ javascript:void(window.open('http://Server/reportserver/Pages/ReportViewer.aspx?/ Apps / Report%20Email&pSearchType = 1&pSearchMethod = 3&pSearchTerm = P%20%26%20L&pFirstName =&pLastName = &pSendEmail=1&[email protected]','_ blank','resizeable = 1,toolbar = 0,status = 0,menu = 0,top = 500,left = 500,width = 450,height = 200')) “

enter image description here

如果我删除SSRS表达式内的%26,它将再次起作用:

=“ javascript:void(window.open('http://Server/reportserver/Pages/ReportViewer.aspx?/ Apps / Report%20Email&pSearchType = 1&pSearchMethod = 3&pSearchTerm = P%20%20L&pFirstName =&pLastName =&pSendEmail = 1&[email protected]','_ blank','resizeable = 1,toolbar = 0,status = 0,menu = 0,top = 500,left = 500,width = 450,height = 200'))“

给什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)