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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:25:43+00:00 2026-05-29T10:25:43+00:00

I have two masterpages, one is the base Masterpage and the other is a

  • 0

I have two masterpages, one is the “base” Masterpage and the other is a nested Masterpage.

In a subfolder of my asp.net web app, the nested masterpage is referencing the main “Standard.Master” by declaring -> MasterPageFile=”~/Standard.Master”.

I am using child-contentplaceholders inside the placeholders defined by the base-Masterpage, to host specific content for the pages displayed using the nested masterpage.

Example:

<asp:Content ContentPlaceHolderID="filter" runat="server">
    <asp:ContentPlaceHolder runat="server" ID="filter"></asp:ContentPlaceHolder>
</asp:Content>
 <asp:Content ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
     <asp:ContentPlaceHolder runat="server" ID="ContentPlaceHolderMain">   
</asp:ContentPlaceHolder>

The contentplaceholder “filter” is defined in the Standard.Master and contains dropdowns or other controls for selecting parameters for the current page, here’s an example:

<asp:Content ContentPlaceHolderID="filter" runat="server"> 
   <asp:CheckBox ID="weekCbx" runat="server" AutoPostBack="false" />

I have many objectdatasources that reference these filters like this:

<asp:ObjectDataSource ID="myDatasource" runat="server" TypeName="BusinessLogic.MyType"
    SelectMethod="GetData" 
    <SelectParameters>         
        <asp:ControlParameter ControlID="filter$weekCbx" Name="weeks" PropertyName="Checked" />
 </SelectParameters>
</asp:ObjectDataSource>

Referencing the contentplaceholder in Standard.master like this -> “filter$weekCbx” doesn’t work in the nested page. The error is: Could not find control ‘filter$weekCbx’ in ControlParameter ‘weeks’. Using “filter$filter$weekCbx” did not work.

How can I get to the controls inside “filter” placeholder in Standard.Master from the nested page?

If I have to move it to the code behind, I will probably have to use FindControl to access 5-10 filters each time. I would like to avoid that.

  • 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-29T10:25:44+00:00Added an answer on May 29, 2026 at 10:25 am

    You could accomplish this using Strong typed Master Pages, you could find information in Here and Here.

    I would suggest that you rethink your design, maybe a couple of things you could change there if you find yourself stuck doing this.

    Good luck!

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

Sidebar

Related Questions

I have two masterpages. A main.Master and a search.Master. The search.Master is a nested
i have multilingual asp.net site. there is a masterpage and default.aspx. I put two
Suppose you have two seperate ASP.NET Web Application projects that both need to use
i have two jquery(can increase), one of them masterpage and the other is in
I've been using ASP.NET (C#) for the past two years. I have learned so
I have a pretty big web application that I created last year using ASP.NET
I had created a webpage using asp.net mvc3 razor. I have two master pages
Among other, I have two pages in my Web Site project. Default.aspx and TeacherControlPanel.aspx.
Have two sets of data (two tables) for patient records, one 1999-2003, the other
I have a Visual Studio C# .NET project. I have two master templates. One

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.