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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:52:19+00:00 2026-05-14T15:52:19+00:00

I have some content from a CMS that I need to move to raw

  • 0

I have some content from a CMS that I need to move to raw asp.net pages. Since the templates are nested I guess I can use nested masterpages to acomplish it, but I’m finding that I can’t set values on the top masterpage from the deep child page.

Here is a sample. I have several nested masterpages with contentplaceholders:

  • top master (with contentPlaceHolder1)
  • nested master, dependent on top master (with contentPlaceHolder2)
  • aspx page, dependent on nested master, defines content for contentPlaceHolder1 and 2

The problem is that asp.net doesn’t allow me to have the value of contentPlaceHolder1 defined in the content page, it should be defined in the nested master. But the point is that the client page knows that value, not the template masters (for instance, the page knows about the graphic it has to display on the the top, but the placeholder for the graphic is the top master).

How can I set values in the aspx page to be rendered in the top master?

  • 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-14T15:52:19+00:00Added an answer on May 14, 2026 at 3:52 pm

    Normally you would have to do the following:

    1. setup a public property on your master page
    2. add the @MasterPage declaration to the top of any content page that you want to access the property in
    3. access the property like Master.YourPageProperty = "value";

    In the case of nested masterpages you must also setup pass-through public properties using the same method above but doing it in your nested master page (ie define the nested master pages master page and set up dummy public properties that just set the value passed in to the nested master to the top master).

    Try looking at this article to reinforce the ideas I have touched upon:

    • http://msdn.microsoft.com/en-us/library/c8y19k6h.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some content from server using $.ajax() function. I try to replace some
I have some content that i have to render as a excel file in
In silverlight 2.0. I have some content that i want to scroll vertically and
I have some code in .Net to draw some text content using GDI+. I
I have a modal popup that initially shows some content but expands a div
I have a page in my application that refreshes some content (a list of
Hi I have placeholder text in my content from the CMS like this: $content
Background: I've wrote a small library that is able to create asp.net controls from
I have some content on my page that I require to be loaded via
I have some flatpages with empty content field and their content inside the template

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.