Hello Friends
Now a days i m creating one web application in asp .net which have a four master pages and also web application have a url rewrting code.
when you are working with mastre pages and url rewriting code where some fack virtual web directorys will be generates which is actual not exist but in your url it will be load.
when this kind of url structures you are working you may have a problem of image display because in master page you gave absolute path for the image source but when fack url will generates image will be not display on page because image not found the path where exact it was placed.
second problem arise when you have a master page which is place in diffrent folder and it`s child page is place in diffrent folder at that time image will not display on the child page so here is the simple solution for the all image path related problems.
<img src=”Img/Logo.gif”/>
Please replace above code to below code
<img src=”<%= Page.ResolveUrl(”~“)%>img/Logo.gif”/>
Enjoy Friends…
Tags: Image Problem with master pages, Image Problem with url rewriting
Hello ! I am Arjun Jadeja a Software Engineer by Profession. You can contribute and I will distribute your ideas through this site. Thanks and Enjoy
One comment
Leave a reply