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
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