Technical support This forum is closed.
Version 1.x > Technical support > ResolveUrl for style or background View modes: 
User avatar
Guest
norashlea - 3/14/2006 5:51:31 AM
   
ResolveUrl for style or background
Can you tell me the correct syntax for ResolveUrl in a style or as the background for a <TD>? I have an image background which gets lost if the page is lower than 1st level. I've been trying various ways, such as:

background='<%ResolveUrl("~/Images/header.gif")%>'
style='background-image: url(<%ResolveUrl("~/Images/header.gif")%>);'

I just get an error:

"; expected"

Thanks,
Sharon.

User avatar
Guest
norashlea - 3/14/2006 5:58:33 AM
   
Re: ResolveUrl for style or background
Cancel that! Got it ...

background='<%=ResolveUrl("~/")%>Images/header.gif'

Thanks,
Sharon.