Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET Themes and RSS.aspx...

ASP.NET Themes and RSS.aspx...

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netsysadmintools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Newman
    wrote on last edited by
    #1

    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 via Response.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

    M 1 Reply Last reply
    0
    • M Matt Newman

      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 via Response.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

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, There are a couple of options suggested from the link[^]: + Make the header invisible. + Use the RSS Toolkit ...

      M 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, There are a couple of options suggested from the link[^]: + Make the header invisible. + Use the RSS Toolkit ...

        M Offline
        M Offline
        Matt Newman
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups