MasterPageFile in Web.config

Unfortunately setting the MasterPageFile in web.config is broken for the designer in the current release of VS 2005 (See http://blogs.ipona.com/davids/archive/2005/10/12/3408.aspx for details).  So here's a rough and ready simple hack that you can use to easily switch masters for a deployment.

1. Create multiple default.master files organised in a consistent folder structure.  I use Masters > SomeMaster > default.master, Masters > SomeOtherMaster > default.master etc.

2. Create a default.master in the root and create all your pages using this

3. Use a web deployment project and create an MSBuild task to copy the master you want over the one in the root.  For an example of similar MSBuild task see this earlier post

During development you can easily copy one default.master over the root one too, so you can preview results in the designer and browser easily.

Pretty obvious, pretty clunky, but at least it is a workable solution until the designer gets fixed.

HTH

Ian

posted @ Thursday, February 02, 2006 1:13 PM

Print

Comments on this entry:

# Buying xanax with mastercard.

Left by Generic xanax. at 3/20/2009 2:19 AM
Gravatar
Xanax presciption. Buy xanax online. Xanax prescription. Xanax. Xanax online.

# How long does xanax stay in your system.

Left by Xanax. at 3/20/2009 11:49 AM
Gravatar
Xanax side effects. What is xanax. Xanax. Buy xanax online.

# Buy cheap generic xanax.

Left by Xanax. at 3/21/2009 2:25 AM
Gravatar
Xanax side effects. Psyweb xanax. Xanax no prescription. Xanax overdose. When was xanax created. No prescription xanax.

# Herbal phentermine.

Left by Phentermine cod. at 3/21/2009 11:20 PM
Gravatar
Phentermine. Phentermine ionamin.

# Soma.

Left by Soma overnight. at 3/23/2009 12:19 AM
Gravatar
Soma next day. Soma.

# Ephedrine in salt licks and chicken feed.

Left by Changes ephedrine causes in the body. at 3/24/2009 1:20 AM
Gravatar
Ephedrine faq ephedrine fatloss. Ephedrine. Items containing ephedrine. Ephedrine side effects.

# Phentermine without a prescription.

Left by Phentermine. at 3/26/2009 4:35 AM
Gravatar
Buy phentermine. Phentermine dosage.

# Buy xanax with no prescription.

Left by Xanax. at 3/27/2009 5:15 AM
Gravatar
Buy xanax. Xanax cocktail. Xanax.

# Ambien cr.

Left by Ambien. at 3/27/2009 8:54 AM
Gravatar
Ambien online. Ambien and hot flashes. Buy ambien.

# expected end

Left by expected end at 4/23/2009 3:01 AM
Gravatar
tonne benefits broadly aerosols wide 20th decadal

# began broader

Left by began broader at 4/23/2009 3:27 AM
Gravatar
regional rise rate dioxide below first

# Keflex.

Left by Keflex. at 11/16/2009 2:17 AM
Gravatar
Keflex. Keflex side effects. Keflex effects. What is keflex.

# proactol weight loss

Left by proactol weight loss at 3/28/2010 9:08 AM
Gravatar
However, I find the most hardest part of losing weight/ keeping it off, in my diet. It’ s so hard to keep your fingers out of the cookie jar or those chocolate goodies. I’ ve found a great addition to help any one out, it’ s a natural weight loss supplement called Proactol. Now don’ t get all crazy on me and say diet pills don’ t work. That is true, but not in this case. This one isn’ t meant to burn pounds while you sit on the couch. It’ s an appetite suppressant, along with being a fat binder. I saved...

# natural weight loss pills

Left by natural weight loss pills at 3/30/2010 5:33 AM
Gravatar
Something I\'m still not completely straight on is which could be the most \"green\" material for outdoor tables and chairs. E. G., a number of websites have hardwood garden tables and benches. Do you think wood best as it\'s sustainable, or is metal and plastic are better as they last longer? I\'d be interested in hearing your thoughts on this issue.
Comments have been closed on this topic.
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789