I'm new to MVC 3, I'm trying to add an Image to the _Layout.cshtml file. I tried
<img runat="server" id="img_logo" alt="Logo" src="Content/Images/mailworks.png" />
no success. The logo only appear on some views. on others views for some reason the image is supposed to be in some other location - found it using firebug.
Try this:
<img id="img_logo" alt="Logo" src="@Url.Content("~/Content/Images/mailworks.png")" />
Use this:
<img src="@Url.Content("~/Content/Images/mailworks.png")"...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With