Using nested master pages with visual design support and MasterType property set.

Posted on 2007-11-27
Medium Priority
Last Modified: 2011-10-03
Hi Experts....

I am using nested master pages and have successfully used a well documented solution to workaround VS.NET 2005's lack of nested master page support in the visual designer (by setting the MasterPageFile property to an emptry string and then assigning it at runtime from a base class).

I have also successfully used the MasterType directive so that I can reference the MasterPage's properties cleanly from the content page.

What I havent been able to do is get the 2 working together, ie, if I set the MasterType directive then VS.NET understandably doesnt like the fact that MasterPageFile is an empty string (or a masterpage class different to the one specified in MasterType).

Is there any way around this?
Question by:jamesmccracken
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
  • 4
  • 3
LVL 12

Expert Comment

by:Munawar Hussain
ID: 20363399

Author Comment

ID: 20363584
I am looking for a solution that allows for content pages to be edited in the design view while specifying a value for MasterType.  As mentioned, Design View is working already without the MasterType directive being set.

Thanks in advance.
LVL 19

Accepted Solution

SteveH_UK earned 2000 total points
ID: 20363653
You may want to download the Visual Studio 2008 (Orcas) Express edition as it supports nested master pages, as does Microsoft Expression Web.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 19

Expert Comment

ID: 20363657
Although the 2008 is still in beta, it can  coexist with a 2005 VS installation.

Author Comment

ID: 20364308
hmmm.... downloading all 3.3 GB of the VS2008 RTM now.

I was hoping I would not have to upgrade, but I see that VS 2008 supports 2.0 framework which makes it more digestable.  I'll be happy if it doesnt break anything or cause a degrade in performance.

LVL 19

Expert Comment

ID: 20365094
I used the beta for quite a while without problems, but even if you only use it for the GUI development it can be worthwhile.

Author Closing Comment

ID: 31429719
Well upgrading did the trick in the end.  Enjoying some of the other new features also.
LVL 19

Expert Comment

ID: 20864578
Glad to help.  Hoping to get 2008 for work soon too!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

752 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