Solved

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

Posted on 2007-11-27
8
385 Views
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?
0
Comment
Question by:jamesmccracken
  • 4
  • 3
8 Comments
 
LVL 12

Expert Comment

by:needo_jee
ID: 20363399
0
 

Author Comment

by:jamesmccracken
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.
0
 
LVL 19

Accepted Solution

by:
SteveH_UK earned 500 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.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 19

Expert Comment

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

Author Comment

by:jamesmccracken
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.

0
 
LVL 19

Expert Comment

by:SteveH_UK
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.
0
 

Author Closing Comment

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

Expert Comment

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

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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