I am writing a web page to show image (image is dynamically generate by .Net charting) in a web. I have used the asp.net web forms URL routing to navigate to this page. Once I use the URL routing the image appear on the page. Anyway this is working fine for normal page browse.
-
1There isn't nearly enough information here to get a viable answer. Can you please explain your problem a little more in detail?– George JohnstonFeb 11, 2011 at 15:15
-
when the issue is expand its like this.– GayanFeb 11, 2011 at 15:36
-
i made more mean full question please check stackoverflow.com/questions/4972745/…– GayanFeb 11, 2011 at 18:46
1 Answer
More than likely your link to the image is using a relative path, and once you introduce routing you are working with a URL structure that appears to be deeper nested in the folder structure than it is.
When linking to the image for display I would recommend using root relative path something like /Images/MyFile.jpg
rather than ../Images/MyFile.jpg
, or similar.
This way if your route changes, and additional "folders" appear in the route, the link will still work.
-
question with more detail are in stackoverflow.com/questions/4972745/…– GayanFeb 11, 2011 at 19:10