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:
- My report is displayed in a separate domain.
- ReportViewer Control renders the tags with target='_top' property.
- IE will not let any href='javascript:void alert....' action to run from a different domain Iframe if the target is _top.
Questions:
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?
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 ?
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...