Solved

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

Posted on 2007-11-27
8
384 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
Comment Utility
0
 

Author Comment

by:jamesmccracken
Comment Utility
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
Comment Utility
You may want to download the Visual Studio 2008 (Orcas) Express edition as it supports nested master pages, as does Microsoft Expression Web.
0
 
LVL 19

Expert Comment

by:SteveH_UK
Comment Utility
Although the 2008 is still in beta, it can  coexist with a 2005 VS installation.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:jamesmccracken
Comment Utility
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
Comment Utility
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
Comment Utility
Well upgrading did the trick in the end.  Enjoying some of the other new features also.
0
 
LVL 19

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple 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

11 Experts available now in Live!

Get 1:1 Help Now