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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:56:38+00:00 2026-05-13T12:56:38+00:00

I have a website that will contain 2 type of layout. With no columns

  • 0

I have a website that will contain 2 type of layout.

  1. With no columns
  2. With 2 columns

Header, footer and lots of other parts are the same for both, but inside the main content, there 2 separate layouts and I’d like to choose between 2 site masters. How would I go about accomplishing this?

I was thinking about making a main site master and have the one with the 2 column inherit from that. If that is the correct method, what are the keywords to google for, or you are free to explain inheriting site masters here.

Thank you,

  • 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-13T12:56:39+00:00Added an answer on May 13, 2026 at 12:56 pm

    Master pages can inside a master page themselves just like any other view. Just specify the master’s MasterPageFile directive as usual:

    <%@ Master Language="C#" MasterPageFile="~/Views/Shared/App.Master"  
        Inherits="System.Web.Mvc.ViewMasterPage" %>
    

    Your views can choose to use the overall master page or the nested one as their masters.

    Alternately, you can set the MasterPage of your views dynamically in several ways. The regular View() method has an overload to specify the master page:

    return View("SomePage", "MasterPageFileHere");
    

    or even better would be to specify an action method to do it for you globally. You can see a good walkthrough of that here.

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

Sidebar

Related Questions

I have a website that will contain a lot of types of businesses, each
So I have this website that will be accessed via an SSL connection (
I am currently working on a website that will have a high volume of
I have a website that generates pdf file from CSP. Will this pdf file
We will develop a web site that will have some free services and we
Often, when searching for answers, I have found that certain websites will allow you
So basically I have website that has names of cities that can be checked
I have a website that runs smoothly, but I just saw that when I'm
I have a website that plays mp3s in a flash player. If a user
I have a website that I've just uploaded onto the Internet. When I browse

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.