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
Solved

Master Page should not be nesting in another master page

Posted on 2009-04-09
4
250 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
ID: 24105022
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
ID: 24105742
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
ID: 24105748
You mean Server.Transfer, not Response.Transfer
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24105924
Thanks for correcting me daveamour.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…

808 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