ailon's DevBlog: Development related stuff in my life

Effectively Disabling Themes in ASP.NET Web Forms

11/29/2007 11:19:32 AM

Apparently, if you have Theme set across your web application, it's not enough to just set EnableTheming="false" in the @Page directive of your ASPX file to disable theming. You have to set Theme="" StyleSheetTheme="" too. Otherwise, if your aspx pretends it's something else (image, javascript, etc.) and has no <head> element, you'll get a nice exception like:

System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags:

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

10/13/2008 10:52:06 AM

Copyright © 2003 - 2008 Alan Mendelevich
Powered by BlogEngine.NET 1.3.1.0