Solved

Load page into a contentPlaceHolder

Posted on 2011-03-14
1
760 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now