Dear All,
I found this bug while working with the technique of Master pages in Visual Studio.
Let's imagine this case, that we have your master page saved in a folder called "
Master Pages".
And that your dynamic page is placed in a folder called "
En" which is placed in another folder called "
Admin".
Also, our images are placed in a folder called "
Images".
So, our structure is as follows:[ Admin ]
-> [ EN ]
-> Page1
[ MasterPages ]
-> English
[ Images ]
-> Logo.jpg
In case in our master page we want to refer to the logo image, the master page will represent it as "
..\Images\Logo.jpg".
And as we know, when the master page is applied on a dynamic page, at
runtime, all the HTML of the master page is placed in the dynamic page
as it is.
So, in our case, the logo link in the dynamic page will be "
..\Images\Logo.jpg" which is wrong and the correct one should be "
..\..\Images.jpg".
This problem is raised as our pages are 2 levels from the root of
the website while the master page is only 1 level apart from the root.
Work-Around:You can change the link that the IDE places for you for the logo and put the following one "
~\Images\Logo.jpg".
This will solve your problem as it will refer to the Images folder directly from the root of the website.
HTH ..