Adrian Hara

Working through the .NET maze

  Home  |   Contact  |   Syndication    |   Login
  43 Posts | 0 Stories | 100 Comments | 10 Trackbacks

News

Twitter












Archives

Post Categories

Although this might be present in other versions of DNN too, I've found that if I add the attribute "theme=something" to the <pages> element in web.config, I get a compilation error in FCKImageGallery.aspx:

"Error    129    Error parsing attribute 'theme': The 'theme' property is read-only and cannot be set.    "

That is because the page's codebehind class derives from the FCKGallery class, which already has a Theme property. This is unfortunate, because, although DNN has its own skinning mechanisms, you might also want to use the standard asp.net themes (like for example for CSS Friendly Control Adapters).

The only workaround I've found so far for this is to add a web.config file to the Fck folder that looks like so:

<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
      <pages theme=""> </pages>
    </system.web>
</configuration>

This "local" config file basically overwrites the application web.config file and tells the compiler that themes are not needed for the local Fck folder.

As I'm new to DNN, maybe I'm missing something, so if you know anything about this, please let me know ;)
posted on Tuesday, July 08, 2008 11:44 AM

Feedback

# re: Using standard asp.net themes with Dotnetnuke 4.8.4 4/17/2009 10:07 AM Hosea
Did you crack this? Am using dnn 5.0.0.1 and I desperately need ability to use server controls skin and theme since am using some DXperience controls whose great looks cannot be purely by css

# re: Using standard asp.net themes with Dotnetnuke 4.8.4 4/17/2009 10:11 AM Adrian Hara
Well, as I said in the post, i used a local web.config file ONLY in the Fck folder. Doesn't this work for you?

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: