Master page and Themes strategy – level 300

In ASP.NET v2.0, we’re benefiting from master pages and themes.  Themes not only sets the stylesheet that is applied to the page, but it also has the ability to set properties on server controls.  If I want all <asp:LinkButton/> controls to NOT cause validation, then I can implement a Theme line item:

<asp:LinkButton runat=”server” CausesValidation=”False”/>

and then every <asp:LinkButton/> will have that property set automatically.

When implementing master pages also, you have to think, “what themes are compatible with this master page?”  Especially if you have graphics, and your theme is going to change color, your master page has to have another set of graphics to support this new color, so the two aren’t always independent. 

These are great features, and we’ll all surely use them in all our ASP.NET 2.0 projects.