CSS styles generated in ASP.NET


I'm wondering if anyone has any suggestions or advice on how to keep track of custom css styles that are generated by asp.net code.


dasBlog has dozens of styles that are dynamically generated all over the place. While one can be good about manually adding place holder styles to a .css file, this is a really poor synchronization system. Throw in a handful of people who are changing the code base, adding and removing styles etc, it's a nightmare to keep track of. And for new users it's even harder to determine what styles can be used.


I was thinking that using custom attributes above the method or class that generates the css style might be the way to go, but I've never used custom attributes in this context. What do you guys do?

Comments (2)
  1. Kent Sharkey says:

    What .Text does is give you one ‘skin’ based on your selection on the Config page, then an ASPX page call that returns custom selectors. As the overall selectors "should" remain constant for most blogs, this works, while allowing people to add their own selectors they could use in a posting, or to override items in the skin’s config.

    TTFN – Kent

  2. BuckyBob says:

    CSS is all text. Store you TEXT in memo fields in Visual FoxPro.

    done deal .

Comments are closed.

Skip to main content