I still have not figured out why option number one works on a new project,
but will not work on this project brought over from vs2005. If anyone has
figured this out please share it with us.
> There are several solutions.
> 1. On the content page which references the css classes, use the properties
> drop down to select document, and choose your StyleSheetTheme. It should now
> render properly , even in design view, and recognize those classes.
Chad Scharf - 12 Jan 2008 06:31 GMT
Please ensure that the "theme" property within the <pages/> tag in your
web.config specifies a valid folder under your App_Themes directory and that
the case matches (Themes and CSS classes are case sensitive). Setting both
of these properties properly in your web.config file should resolve the
issues without much fuss for your 2005 to 2008 converted web projects.
From the MSDN documentation, the styleSheetTheme property, "Specifies the
name of the "named theme" folder to be used to apply the theme before control
declarations, in contrast with the theme attribute that defines the theme to
apply after the control declaration."
and the theme property, "Specifies the name of the theme that is used for
the pages that are within the scope of the configuration file. The specified
theme must exist as either an application or a global theme. If the theme
does not exist, an HttpException exception is thrown."
Having an invalid or non-case matching theme name in either of these
attributes could also invalidate the VS2008 designer validation algorithms
and/or cause build errors. If you set these values in your web.config, you
should consider removing all references to Theme or StyleSheetTheme from the
<%@ Page %> directive at the top of any pages that you've used the designer
to modify unless you explicitly plan on using a different theme for different
pages within the same configuration scope.
If you are still experiencing issues let me know and I'll see what I can
help out with. I've converted 5 web projects from VS2005 to VS2008 in the
past 2 months that use Themes without any issues and both theme and
styleSheetTheme are set in the web.config file.
Thanks,

Signature
Chad Scharf
_______________________________
http://www.chadscharf.com
> I still have not figured out why option number one works on a new project,
> but will not work on this project brought over from vs2005. If anyone has
[quoted text clipped - 4 lines]
> > drop down to select document, and choose your StyleSheetTheme. It should now
> > render properly , even in design view, and recognize those classes.