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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:31:55+00:00 2026-05-26T07:31:55+00:00

This is very wired problem to salve as to explain. Before I go to

  • 0

This is very wired problem to salve as to explain. Before I go to try to fix CSS I wan’t to be sure that I am doing right what I am doing here.
I have one index page that contain few smaller views. Each smaller view has it’s own model classes. I render smaller views like this:

<div id="left" style="width: 205px; float: left; ">
        @{Html.RenderAction("Index", "Controller3");}
    </div>
    <div id="center" style="width: 540px; float: left;">
        @{Html.RenderAction("Index", "Controller2");}
    </div>
    <div id="right" style="width: 205px; float: left;">
        @{Html.RenderAction("Index", "Controller3");}
    </div>
...

Index view contains:

@{
    Layout = null;
}
<div>
  ....

And view renders fine. But if I remove from smaller index view “Layout = null;” then my view big break somehow. All elements loose it’s positions. Now:
– Is this “Layout = null;” line very important for something here?
– When one view contain smaller view like this should I return from Action methods View() or PartialView()?
– Is there any other approach to make big view from few smaller or this is the good way as I doing it?

  • 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-05-26T07:31:56+00:00Added an answer on May 26, 2026 at 7:31 am

    If you don’t add Layout = null to the child view, each child view will render your entire _Layout.cshtml around it.

    Returning Partial(...) from the child action will also suppress the layout.

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

Sidebar

Related Questions

I find this very strange, must be something I'm doing wrong, but still... I'm
I have this very simple example that I am using to learn structs in
In one of my current projects we keep running into this very wierd problem
So this is a really strange problem. I have a Java app that acts
I have a rather strange problem. I have a very simple application that reads
I'm very new in shell scripting, and I encountered a problem that is quite
This is my first C program. hello world! I'm sure this is no problem
This very simple code gives me tons of errors: #include <iostream> #include <string> int
This very simple code: #include <iostream> using namespace std; void exec(char* option) { cout
Given this very familiar model of prototypal construction: function Rectangle(w,h) { this.width = w;

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.