I have a User Control with several images inside. I will set images sources from a main directory like "Website\Pictures"
.
My User Control is located in a specific directory like this: "Website\UControls"
(Template Source Directory)
I'm trying to Load my user control inside a div in another page. Everything will work OK but images sources. I will see user control's Template Source Directory at the beginning of every image and it cause to have broken links.
For example an image source should be like this: "../Pictures/1.png"
, but I will have this: "../UControls/Pictures/1.png"
where "UControls"
is Template Source Directory.
How can I avoid such treating?