PDA

View Full Version : Image loading and link path issues


rhenson
09-17-2005, 04:35 AM
Hi,
I'm new to the vs beta - but I'm using the defaults when it comes to loading an image. For example I have:



<asp:image id="Image2" runat="server" ImageUrl="~/App_Data/nparheader.jpg" BorderStyle="None">


But - none of my images or links work - they don't load or I get a 404. I've tried ./, ../, / and ~/- none are working for me. Any help would be appreciated.


Thanks.

bruce
09-20-2005, 05:30 AM
is there a URL that you can post? i want to see the image property

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

rhenson
09-20-2005, 05:33 AM
Hey Bruce - thanks for looking at it. It must have been something about using the App_Data directory - I created an Images directory and used the exact same code with the new directory and the images loaded right up.It is NPAR.net if you still wanted to look at it. If there is something I can learn from it, let me know!