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.

Tags:

ASP.NET

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Search

Calendar

«  May 2012  »
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

Recent comments

Archive