Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Images Driving Me Nuts

$
0
0

I am not one for pretty and photos and things.  But I dont think this is anything to do with it.

All I am wanting to do is put a photo on the home page.  Simple enough.

I have a folder in my root directory called Logo I was using for images of logos and thought this will do I will save the image in here and load from there.

Currently the code I have is:

<div class="col-sm-4"><asp:Image runat="server" ImageURL="~/Logo/ODP.JPG" /></div>

Which is simply returning a blank space.  Nothing, Nada, Zip.

I have tried:

<img src="~/Logo/ODP.JPG" /><img src='@Url.Content("~/Logo/ODP.JPG" )' />

Both of which return nice little black boxes with X in them and nothing else.

I have tried switching browsers and this makes no difference.

I have tried typing the URL direct into the address bar as in localhost:12345/Logo/ODP.jpg which returns a helpful message:

No web page was found for the web address: http://localhost:12345/Logo/ODP.jpg

I am at a loss as to what else I might try.  I thought this would be a simple thing to sort.  Obviously there is more here than I know about.  Any suggestions?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>