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

  • SEARCH
  • Home
  • 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 7928791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:50:56+00:00 2026-06-03T19:50:56+00:00

Am building a typical admin portal – there’s two shared partial view .cshtml files

  • 0

Am building a typical admin portal – there’s two shared partial view .cshtml files for top and left menus. Then, the main content is the usual view files.

Example, I have in “views” a “dashboard.cshtml” and “settings.cshtml” and so on. Inside these, I make a call to @Html.Partial(“_Layout_topmenu”) and @Html.Partial(“_Layout.leftnav”)

Everything is “working” fine, except that when I click around from “dashboard” to “settings” and back to “dashboard”, I see the entire screen refresh. I was expecting only the main content portion to refresh while the top and left navs would stay the same since they are partial views.. am I missing something?

In the controller code for the “Dashboard” and “Settings” GET methods that return the ActionResult type, I am simply returning view();

So is it possible to hold on to the top menu and left nav panes and keep changing the main content while moving from //site/controller/view1 to //site/controller/view2 (and without involving jQuery/AJAX magic)… ?

Thanks!

  • 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-03T19:50:57+00:00Added an answer on June 3, 2026 at 7:50 pm

    unless you’re using frames, which i don’t think you are, or you are manually loading the partial views’ html via ajax into their respective containers, you’re just making a regular http request. the partial views are only on the server, not client side, so when you make a request for a given page, the whole thing is reloaded.

    if you want to load the content area independently of the other areas, i would suggest looking into returning PartialView() from your controller method, and calling that method via jQuery’s .load() method.


    EDIT

    without using jquery/other magic, no. if you make a request for a page, you’re going to load a page. this should not be a suprise.

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

Sidebar

Related Questions

I'm working through the fairly typical process of building view controllers and their associated
Typical SAX Parser - I am building a list out of the endElement. I
I'm building a mobile app using HTML, CSS, Javascript and jQuery. Is there a
I am building a PHP CMS from the ground up. There is one super-core
(Note: these two questions are similar, but more specific to ASP.Net) Consider a typical
I'm building a business application which mostly involves tables and other typical form elements.
I want to know when building a typical site on the LAMP stack how
I am building a iPhone web based app for our execs to view sales
I am building a mobile web site for a physical product. The typical use-scenario
All, I am building a typical database driven helpdesk application. I would like to

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.