Received the following error on web page that did not require themes:
Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
Setting EnableTheming="false" did not work.
Solution
If themes are not required on page, disable themes with additional attributes:
<%@ Page EnableTheming="false" Theme="" StylesheetTheme="" %>
Note: It is undocumented that you must specify empty attributes Theme and StylesheetTheme.
References
"How to: Disable ASP.NET Themes." MSDN: Microsoft Development, MSDN Subscriptions, Resources, and More. 03 June 2009 http://msdn.microsoft.com/en-us/library/kx3kzht7(VS.80).aspx.
No comments:
Post a Comment