So I have an ASP.net application that has FriendlyURLs enabled (and used) and a crystal report viewer. I am running into an issue with the images on the viewer.
The viewer is on a page called viewreport which when displayed the url shows:
http://site.com/viewreport/
crystal reports uses a file called CrystalImageHandler.aspx for displaying images which ends up creating a url like:
But it does not work, I can use javascript to replace all instances of "CrystalImageHandler" in the img src to "/CrystalImageHandler" which shows the images, but since reports can take either a long or short time to load (and the page is considered loaded) outside of having a "Show Images" button I can't rely on the javascript to fire when it should.
Does anyone have any suggestions or ideas on how to get it to redirect from /viewreport/CrystalImageHandler.aspx to /CrystalImageHandler.aspx without requiring user interaction.
Question
firey
So I have an ASP.net application that has FriendlyURLs enabled (and used) and a crystal report viewer. I am running into an issue with the images on the viewer.
The viewer is on a page called viewreport which when displayed the url shows:
crystal reports uses a file called CrystalImageHandler.aspx for displaying images which ends up creating a url like:
Which doesn't work. Because routing is enabled, it treats the first part as a the page then
Ends up being an argument causing images to not load. I have tried to modify the httpHandlers to something like:
But it does not work, I can use javascript to replace all instances of "CrystalImageHandler" in the img src to "/CrystalImageHandler" which shows the images, but since reports can take either a long or short time to load (and the page is considered loaded) outside of having a "Show Images" button I can't rely on the javascript to fire when it should.
Does anyone have any suggestions or ideas on how to get it to redirect from /viewreport/CrystalImageHandler.aspx to /CrystalImageHandler.aspx without requiring user interaction.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts