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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:04:51+00:00 2026-05-11T19:04:51+00:00

hi i have a master page in MVC with multiple contentplaceholders for example: news

  • 0

hi i have a master page in MVC with multiple contentplaceholders for example:

news list, basket preview, offers etc. and these things i want to be throughout the application, but this is my first MVC application and i was wondering if you guys have some sound advice on how to tackle multiple content, from multiple (pages/code) without having to reproduce code for each controller.

i have been trying to ge my head around the views, and maybe having each section as a view
so viewnews would have contentplaceholderid=”newsholder” etc but i dont know if this is the way to go, or how to impliment this in the controller as i will still want this on the url
of say /product/1

anyway look forward to your response

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-05-11T19:04:51+00:00Added an answer on May 11, 2026 at 7:04 pm

    ContentPlaceholders are for stuff you want to be able to replace on 99% of your pages.

    If you want semi-generic content accross several pages you want to look into UserControls and Html.RenderPartial (I’ll try to find a better link).

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

Sidebar

Related Questions

I have a master page in my asp.net MVC project, which has code like
I am working with an ASP.NET MVC application. I have one master page having
I have a hybrid ASP.NET WebForms/MVC project. In my Master Page, I have a
I have an ASP.NET MVC site (Master Page + Content pages). On the master
using ASP.NET MVC 2 I have a navigation menu inside my Master Page. In
I have an MVC view page that uses a master page. The master page
I have an ASP.NET MVC application I'm building and I'm using a Master page.
I created a default ASP.net MVC project. In the Master page I have the
So I have a master page in MVC that has the following code in
Actually in my .net mvc application's Master page i have placed the jquery 1.3.2

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.