Change Link Target property for Jump to URL action SSRS 2008 R2 (rc:LinkTarget)

你离开我真会死。 提交于 2019-12-11 05:25:11

问题


I'm using SSRS208R2 to create reports. I display these reports using a ReportViewer control in my web application.

some of the fields in my table are tags that user javascript:void window.open... to opent a link in a new window. I use Jump to URL action for my placeholders to achieve that.

The Problem:

  1. My report is displayed in a separate domain.
  2. ReportViewer Control renders the tags with target='_top' property.
  3. IE will not let any href='javascript:void alert....' action to run from a different domain Iframe if the target is _top.

Questions:

  1. is there a way to define a different target for an anchor tag - i have search some places and found that the SSRS web application can use rc:LinkTarget=_Blank to chage all the targets but that dosent seem to work for me. are there any other possible solutions?

  2. Can anyone suggest a different approach to open a link in a new window that will not hit a wall when the report is displayed from an Iframe on a different domain ?


回答1:


Solved!

I tried the query string "rc:LinkTarget" at the built in reporting services web interface.. and that did not work for me initially.

Then I tried to changed the location of that parameter and it worked.. I really don't think that that was it maybe there was a spelling error or something, anyway...

So I did some more digging and found that the report viewer control has the same property called LinkTarget I used it to define an empty string and everything works fine.

Cheers...



来源:https://stackoverflow.com/questions/12248731/change-link-target-property-for-jump-to-url-action-ssrs-2008-r2-rclinktarget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!