Nested master page bug

by timvasil 12/6/2007 7:43:00 PM

Well, I stumbled upon a bug with nested master pages in .NET 2.0.

 Apparently it's a very bad idea to declare your own method called Master as follows:

        public new MyClass Master
        {
            get { return (MyClass)base.Master; }
        }

This compiles, of course, but any page that uses this master does not get its content inserted into the content placeholders.  Booo.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET

Related posts

Comments are closed

 

About the author

Tim Vasil Tim Vasil
I'm a software engineer living in Cambridge, MA.

E-mail me Send mail

Search

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments