Solved

Load page into a contentPlaceHolder

Posted on 2011-03-14
1
831 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

Industry Leaders: 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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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