Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Load page into a contentPlaceHolder

Posted on 2011-03-14
1
Medium Priority
?
879 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

636 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