Image loading and link path issues

Discussion in 'ASP.NET 2.0' started by rhenson, Sep 17, 2005.

  1. 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.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    is there a URL that you can post? i want to see the image property

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. 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!
     

Share This Page