What is the root ?

Mar 3, 2010 at 3:43 PM

Hi, I think I may be being stupid..can anyone help me figure this out. The basic problem is I cant get an .png to display from my site.master when I make the site live.  It works on my local (windows) server. this is what I have done.

1) I put a referance to my img in the site master src="/blogengine.net/themes/mytheme/images/email.png".  (works fine locally)

2) The image is under images in my theme directory

When I publish this it does not find the image, altough I have verfired by viewing to source that the path is the same.

Any ideas ..





Mar 3, 2010 at 3:54 PM

try this:

<img src="images/email.png" runat="server" />



<img src="<%= Page.ResolveClientUrl("~/themes/mytheme/images/email.png")%>" />


both work for me.

Mar 3, 2010 at 4:08 PM

Fantastic, thanks I used the runat server and works great. 

I think I need to get myself on a asp.net 101 course ...