Rants, rambles, news and notes from another geek

ASP.NET Control - Using LiteralControl as Base Class

I was just playing around with Lutz Roeder’s Reflector&nbsp_place_holder;and decided to take quick look at the code in Microsoft CRM. I was just having a quick look around, mind you, not “reengineering the product”. Anyway, I noticed an interesting trend…

It appears that all of their ASP.NET “custom controls” derive from LiteralControl instead of from one of the other Control classes. I’ve done it that way myself, but I wondering if anyone has written anything about which way is “better”.

BTW, if you haven’t heard of Reflector, go get it NOW!