How to point an image to application root folder

  • Thread starter Thread starter Danny Ni
  • Start date Start date
D

Danny Ni

Hi,

Is the ~ sign supposed to point to the application root in the following
tag?

<asp:Image runat="server" ImageUrl="~/images/logo.gif" />

It render as

<img src="/images/logo.gif" ....>

TIA
 
Danny,
this isn't a C# language question, it's an ASP.NET question and should be
directed to the microsoft.public.dotnet.framework.aspnet group.
Peter
 
Back
Top