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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top