Master Pages : how to remove headers/footers etc.

J

Jethro

HI all

I've inherited an ASP.NET 2.0 project, which uses master pages.
Basically we have :

MASTER PAGE
<asp:contentplaceholder id=cp1/>
<asp:contentplaceholder id=cp2/>
<asp:contentplaceholder id=cp3/>
<asp:contentplaceholder id=cp4/>

ASP FILE
<asp:content id=cp1/>
<asp:content id=cp2/>
<asp:content id=cp3/>
<asp:content id=cp4/>

Now if I want to just serve up what's in contentplaceholder2, do I
have to make changes to the ASP pages using the masterpage. I ask,
because I tried deleting them from the master page, and got runtime
errors about not finding the missing placeholders.

Or is there another way ?

The reason is that I have a partner who needs just the content of the
webapp Iin an IFRAME on their site), not the header, footer and menu
elements

thanks guys
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top