Working with images in asp.net MVC ViewMasterPage in design mode
Posted
by amit.codename13
on Stack Overflow
See other posts from Stack Overflow
or by amit.codename13
Published on 2010-06-13T09:23:53Z
Indexed on
2010/06/13
9:32 UTC
Read the original article
Hit count: 363
While designing a master page i am adding a number of images to it.
I have an image tag inside the master page,
<img src="../../Content/Images/img19.jpg" class="profileImage" />
When i run my app, the image doesn't show up in the browser because the src path in the page that browser gets is same as in the master page.
ie. "../../Content/Images/img19.jpg"
But it should have been "Content/Images/img19.jpg"
If i correct the src path in master page as
<img src="Content/Images/img19.jpg" class="profileImage" />
Then I can see the image in the browser but not in design mode.
Any help is appreciated.
© Stack Overflow or respective owner