More in this section

Forums / Developing with Sitefinity / Sub page image will not work

Sub page image will not work

2 posts, 0 answered
  1. Joshua
    Joshua avatar
    10 posts
    Registered:
    18 Mar 2010
    05 Apr 2010
    Link to this post
    I created my main page template and everything loads fine. I created a sub page of my existing page and the image wont load. I tried including ~ to the folder name example "~/images.sitefinity.jpg" and this did not work.

    Main folder "images.sitefinity.jpg" image loads fine for master.
    sub page "../images.sitefinity.jpg" image will load for the sub pages.
    I do not want to create separate templates for a sub page.
    Any ideas?
    Thanks,
    Joshua
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    05 Apr 2010
    Link to this post
    Hi Joshua,

    Try using ASP.NET Image control and set ImageUrl property of the control to your image. Most probably you are using some HTML elements to set the image, which cannot resolve the proper path.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered