aspx master page or inner page image problem

We mostly face a content path problem if we maintain your inner pages, master pages and may be images in different directores (folders). Due to this problem we are unable to see images on web browser.

So solution of this problem is that provide root directory to image paths as described in below code.

Page.ResolveUrl("~") // get root directory

Complete example:

[sociallocker]

<img alt="" src="<%= Page.ResolveUrl("~")%>Images/logo.gif"/>

[/sociallocker]

Leave a comment

Your email address will not be published. Required fields are marked *