Solved

Load page into a contentPlaceHolder

Posted on 2011-03-14
1
806 Views
Last Modified: 2013-11-05
Hi,

I have a aspx page (NoMaster.aspx) without a Master page association.
I hage a MasterPage (MyMaster.Master) with a single contentPlaceHolder on it.
I have a aspx page (HasMaster.aspx) with the Master Page associated to it.
In the Page_Init mehtod of HasMaster.aspx i find the content place holder from the master page.

My problem: How can i load the NoMaster.aspx into this content place holder for rendering?
0
Comment
Question by:cossy74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
Ajay Sharma earned 500 total points
ID: 35135379
You can't load a content page into a master Page, if the page don't have master page defined while designing) .

Workaround,
1) Create a blank master page.
2) re-create the NoMaster.aspx to have a master page and use the above acreated masterPage.
3) on Page_PreInit event of nomaster.aspx tou can change the master page based on the conditions
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question