如何解决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&pEmailTo=someone@email.com >
但是,如果我在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&pEmailTo=someone@email.com','_ blank','resizeable = 1,toolbar = 0,status = 0,menu = 0,top = 500,left = 500,width = 450,height = 200')) “
如果我删除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&pEmailTo=someone@email.com','_ blank','resizeable = 1,toolbar = 0,status = 0,menu = 0,top = 500,left = 500,width = 450,height = 200'))“
给什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。