ASP.NET Themes and RSS.aspx...
-
I have a slight problem, I am developing an ASP.NET 2.0 website that uses themes (currently only one). The site theme is specified in web.config as
<pages styleSheetTheme="White"/>
. It was working great until I wanted to start adding RSS support. I am adapting an rss example from the Atlas wiki site starter kit. The aspx file is just an empty aspx file and the aspx.cs file generates the xml, and delivers it viaResponse.Write
. I have used this method in previous asp.net 2.0 applications without problem, however this is my first time with themes. My problem is this:System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
I tried setting EnableTheming to false for the page and had the same problem. Anyone have any ideas? Matt Newman
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots -
I have a slight problem, I am developing an ASP.NET 2.0 website that uses themes (currently only one). The site theme is specified in web.config as
<pages styleSheetTheme="White"/>
. It was working great until I wanted to start adding RSS support. I am adapting an rss example from the Atlas wiki site starter kit. The aspx file is just an empty aspx file and the aspx.cs file generates the xml, and delivers it viaResponse.Write
. I have used this method in previous asp.net 2.0 applications without problem, however this is my first time with themes. My problem is this:System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
I tried setting EnableTheming to false for the page and had the same problem. Anyone have any ideas? Matt Newman
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots -
The invisible header worked.. which seems odd but it works. I am looking into the RSS Toolkit. Thanks for the help. Matt Newman
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots