Asp.net Master Page Image Reference

Based upon where a Master page is referenced can determine how a reference to an image needs to be. The following will maintain a consistent reference for a master page.

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

Comments are closed.