Solved

Master Page should not be nesting in another master page

Posted on 2009-04-09
4
228 Views
Last Modified: 2013-11-26
I have two master pages in my project. The Master.master has a header at the top which is then applied to all the content pages. Then I have a Print.master which I want to use when I need to print a grid full of data. The Print.master does not have a header so that its only the grid showing - thus the header is not printed.

Now the problem comes when i redirect from a content page that uses Master.master to another content page which uses Print.master. The Print.master and its content page are show inside the Master.master content page as if they were content pages. I have even tried using a normal page instead of the Print.master and its content page, for printing reports, but then that normal page is also only shown inside the Master.master when it should not be shown like that.

Please help!
0
Comment
Question by:Krummelz
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
daveamour earned 55 total points
Comment Utility
Ok I don't know how to fix your problem but maybe a different approach would be to use css and have print media hide the header.
http://www.digital-web.com/articles/css_styling_for_print_and_other_media/
 
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
How do you redirect? I do not think that if you redirect to a different page then it should show it within the content section of existing master page. Would Response.Transfer help?
0
 
LVL 19

Expert Comment

by:daveamour
Comment Utility
You mean Server.Transfer, not Response.Transfer
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
Thanks for correcting me daveamour.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

10 Experts available now in Live!

Get 1:1 Help Now