Solved

Load page into a contentPlaceHolder

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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