Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:27:30+00:00 2026-06-06T19:27:30+00:00

I have a _Layout.cshtml page which I’ve used to include all master page styling.

  • 0

I have a _Layout.cshtml page which I’ve used to include all “master page” styling. This page includes an image in my header which is mapped in the layout page as:

<img src="/Content/Images/Logo.jpg"/>

When I created the controllers, I selected the option to create a “controller with read/write actions and views, using Entity Framework” which generated my Edit, Delete, Create and Index views.

My image appears normally on the Index pages for all of my various controllers, however when I click on any of the the Edit, Create or Delete pages, the image breaks. Do I need to map the image differently on these pages, and if so, how do I change this? I was under the impression that all pages pulled content from the layout page the same way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:27:32+00:00Added an answer on June 6, 2026 at 7:27 pm

    Try mapping the image like so:

    <img src="@Url.Content("~/Content/Images/Logo.jpg")" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC 3 project in which I use _Layout.cshtml as master page
I have this _Layout.cshtml <body> <div id=wrapper> <div id=header-wrapper> <div id=header> <div id=logo> //SOME
i have a master page called layout.cshtml and a page called testpage.cshtml. On this
I have this menu in _Layout.cshtml : <td class=MenuStructure> <ul id=menu> <li>@Html.ActionLink(First Page, Page1Action,
I have something like @{ Html.RenderPartial(@~/Views/Management/_Main.cshtml); } Can I change this view without page
just a quick question about the mvc JqueryUI framework, i have a _layout.cshtml page
I am using an mvc application and in _Layout.cshtml page I have some javascript
I have a razor master layout _Master.cshtml and I include Master.css in it. I
I have _Layout.cshtml defined for my mvc application, which is shown below: @inherits System.Web.Mvc.WebViewPage
I have a _layout page which has a login box (partial view) and that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.