Monday, May 03, 2010

My stupidest mistake of the year

I just spent 2 hours trying to debug why my custom web page server keeps timing out on me...It has a custom list form template that uses an override of the ListFieldIterator. What did I do wrong? take a look at my aweful code...and see if you can spot the infinite loop...

override DefaultTemplateName { get{ return this.DefaultTemplateName; } }

1 comment:

Unknown said...

Instead of "return this.DefaultTemplateName" It should be "base.DefaultTemplateName" since you are overriding it. This would once again point to the derived class only !