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 8631889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:16:44+00:00 2026-06-12T09:16:44+00:00

In a ASP.Net MVC project, I’m using Razor built-in _layout.cshtml with a classic two

  • 0

In a ASP.Net MVC project, I’m using Razor built-in _layout.cshtml with a classic two columns layout with header and footer. The idea is to show my application views in the right column of the layout and have a consistent look for the whole site without duplicating code…

The problem is that each time I call a view and have it content rendered in my layout right column with @RenderBody(), the whole layout is refreshed. Is it normal behaviour?

Is there any built-in mecanism in this Razor’s layout concept to refresh only the rendered view content and not the whole site or do I have to make a jQuery Ajax call and make a div replacement with view content?

Thanks

Etienne

  • 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-12T09:16:44+00:00Added an answer on June 12, 2026 at 9:16 am

    if you want to switch your content dinamically, you have to load data via ajax and then replace the right column of your site…Razor don’t have a “automatic mode” to do that. =P

    I have some projects using this ‘approach’. I render my views as partials views (in controller) and then I get the html and put where I want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a asp.net mvc project using Razor ViewEngine (.cshtml files) Why is the
I'm starting an ASP.NET MVC project using SubSonic 3 ActiveRecord. I added a table
Say you have an ASP.NET MVC project and are using a service layer, such
I have an existing ASP.Net MVC project that is using entities / repositories in
I am using T4MVC in our ASP.NET MVC project. I have a statement like
I am using ASP.NET MVC project and jQuery to handle async requests. Sometimes for
I currently have an ASP.NET MVC project built on top of the S#arp architecture
After manually upgrading an ASP.NET MVC project to MVC4 using these instructions , how
I have a form in an ASP.Net MVC project on which I am using
I am using a template in an ASP.NET MVC project. Template is here -

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.