ContentPlaceHolderID not found in the MasterPage

A

Adam Tibi

Hi,

I'm using VS 2005. Using multiple MasterPages.

When I try to load a page that has a Content pointing to a
ContentPlaceHolderID that does not exist in the loading MasterPage an error
will occur specifying that ContentPlaceHolderID doesn't exsit.
I want to be able to still load the page even if the MasterPage doesn't
contain the specified ContentPlaceHolder.

Note that it works fine the other way arround when you have a
ContentPlaceHolder in the MasterPage but don't have a Content in the Page
pointing to it!

A solution for the first case might be checking in some Page event both the
page and the masterpage and elemenate the Contents from the page that are
pointing to a ContentPlaceHolder that do not exist in the MasterPage.

I am wondering if some one has a better approach for this or if I am missing
some thing

Thank you in advance
Regards,
Adam Tibi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top