1

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.

3
  • 1
    There isn't nearly enough information here to get a viable answer. Can you please explain your problem a little more in detail? Feb 11, 2011 at 15:15
  • when the issue is expand its like this.
    – Gayan
    Feb 11, 2011 at 15:36
  • i made more mean full question please check stackoverflow.com/questions/4972745/…
    – Gayan
    Feb 11, 2011 at 18:46

1 Answer 1

1

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.