<asp:Image runat="server" ImageUrl="~/images/hi.gif" />
>
returns:
../images/hi.gif
ResolveUrl("~/images/hi.gif")
returns:
informit/images/hi.gif
That's correct! But IMHO, the main question still remains -- what happens
behind the scene.
The document is also silent about it.
I have just posted a small FAQ detailing what happens at
http://faqs.edujini-labs.com/1_5_en.html
See my earlier posting to the thread... it's about ResolveClientUrl vs.
ResolveUrl.
The ResolveUrl is relative to TemplateSourceDirectory. For the ASPX pages,
the TemplateSourceDirectory is the folder where Application-Context relative
folder where the ASPX page resides.
The ResolveClientUrl returns a URL relative to the current-page rather than
virtual-path.
HTH.
--
Happy Hacking,
Gaurav Vaish |
www.mastergaurav.com www.edujini-labs.com http://eduzine.edujini-labs.com
-----------------------------------------