<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: themes vs css</title><link>http://forums.asp.net/thread/1001936.aspx</link><pubDate>Wed, 27 Jul 2005 22:24:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1001936</guid><dc:creator>SimonCal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1001936.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1001936</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Tahoma size=2&gt;Some other comments.&lt;BR&gt;&lt;BR&gt;Themes can be applied in 2 ways, as customizations or "stylesheet" forms which&amp;nbsp;support two potential scenarios:&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Customization&lt;/STRONG&gt; of a site, post development (theme="mytheme"). Any theme applied in this manner overrides the control itself and therefore means that if controlled through a config entry can be used to affect the site simply&amp;nbsp;This is regarded as a non-development scenario and themes applied like this are not supported in the designer&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Stylesheet&lt;/STRONG&gt; themes, during development (stylesheettheme="mytheme"). A theme applied in this manner is applied to the control before it's declarative property sets, and allows for the same logical abstraction of let's say, styles, like CSS into a form that can be repeatedly consumed. Then, like CSS, the control's property sets 'being most local', override that defined through the theme. Note that this form of themeing&amp;nbsp;&lt;STRONG&gt;IS&lt;/STRONG&gt; supported in the designer.&lt;BR&gt;&lt;BR&gt;It is true that like server controls, style property sets will result in an in-line style, so the skin/theme also will result in the same and ptentially increase the payload. The skin/them though is not necessarily bound to stylistic propeties, it can be used for template definitions (hence contrent), and collections too (hence content). In fact it is the control that effectively defines properties that arre themeable. &lt;BR&gt;&lt;BR&gt;Since themes can be a collection of skin files (controls propetrty sets),&amp;nbsp; but also other resources, like CSS files, images etc (since they can be applied as a property set), the theme gives a good logical grouping of the factors that a developer might want to use to apply look and feel to a site, in both manners described above. &lt;BR&gt;&lt;BR&gt;Strongly-typed properties, which of course give good programmability in the control sense, do abstract the page developer from requiring good knowledge of CSS. Similarly, the related attribute properties in the declaration of a control also simplify development. However, there are great arguments for using cssclass definitions too.&lt;BR&gt;&lt;BR&gt;Of note I think also, are the manners in which you can programmatically select themes and skins(customization themes), during a framework lifecycle, rather than having to cope with potential cssClass changes, or even linked .css file changes. Even if you set up a theme to be a folder with a CSS defining known css classes, then simply selecting the theme means that the framework will add the css reference to the response/rendered page and rebase the url to that css for the page.&lt;BR&gt;&lt;BR&gt;Ultimately, it comes down to a combination of what are the skill-sets, requirements for payload, development paradigms and scenarios that you are trying to achieve.&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Re: themes vs css</title><link>http://forums.asp.net/thread/1001773.aspx</link><pubDate>Wed, 27 Jul 2005 19:47:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1001773</guid><dc:creator>BrockAllen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1001773.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1001773</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;vimodi wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;Here are the major advantage of Theme over css&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;I assume you're talking about skin files, over CSS used in a Theme. If so....&lt;BR&gt;&lt;BR&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;vimodi wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;&lt;BR&gt;&lt;FONT size=2&gt;User&amp;nbsp;will write asp.net controls in the skin file instaed of html ...&lt;BR&gt;&lt;/FONT&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;The same approach is taken for CSS. I don't see how this is an advantage over CSS. &lt;BR&gt;&lt;BR&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;vimodi wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;&lt;BR&gt;&lt;FONT size=2&gt;... and take the advantage of styles features of asp.net controls&lt;BR&gt;&lt;/FONT&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;The downside of this is a bloated page since those styles are all embedded inline in the rendered tags. &lt;BR&gt;&lt;BR&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;vimodi wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;&lt;BR&gt;&lt;FONT size=2&gt;It gives the common looks and feel to all webcontols in a simple way. &lt;BR&gt;&lt;/FONT&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;I suppose the key word here is simple. Perhaps server control properties are simpler than CSS. But there's a price for this (my point from above).&lt;BR&gt;&lt;BR&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;vimodi wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;&lt;BR&gt;&lt;FONT size=2&gt;Its allows to abstract the styles so that it can be reused.&lt;BR&gt;Using skinId you can apply different skin to differnt controls&lt;BR&gt;User can g&lt;SPAN&gt;ranularly &lt;/SPAN&gt;specify&amp;nbsp;at contorl level that if a style should be applied to a perticualt webcontrol or not by using EnableTheming = "true/false"&lt;BR&gt;User can difine the order in which styles applied to the page. eg style defined in StyleSheetTheme will be overridden by the page and style defined in the page will be overridden by the Theme.&lt;BR&gt;&lt;/FONT&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;I don't see why this can't also be done for CSS classes. &lt;BR&gt;&lt;BR&gt;Anyway, this is just meant to be a "counter-point" post. Personally CSS for ms is lighter weight and it's not too complex. If you're building pages for the web, at some point you're going to have to deal with CSS.&lt;BR&gt;&lt;BR&gt;As I suggested above, I like to use skin files to set the CssClass property. That way, for my entire app the&amp;nbsp;class property&amp;nbsp;is set in a single location. The actual CSS then controls those styles.&lt;BR&gt;&lt;BR&gt;-Brock&lt;BR&gt;</description></item><item><title>Re: themes vs css</title><link>http://forums.asp.net/thread/1001601.aspx</link><pubDate>Wed, 27 Jul 2005 17:58:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1001601</guid><dc:creator>vimodi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1001601.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1001601</wfw:commentRss><description>Here are the major advantage of Theme over css&lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;Theme is a collection of control styles applied to webcontrols on website. &lt;BR&gt;User&amp;nbsp;will write asp.net controls in the skin file instaed of html and take the advantage of styles features of asp.net controls&lt;BR&gt;It gives the common looks and feel to all webcontols in a simple way. &lt;BR&gt;Its allows to abstract the styles so that it can be reused.&lt;BR&gt;Using skinId you can apply different skin to differnt controls&lt;BR&gt;User can g&lt;SPAN&gt;ranularly &lt;/SPAN&gt;specify&amp;nbsp;at contorl level that if a style should be applied to a perticualt webcontrol or not by using EnableTheming = "true/false"&lt;BR&gt;User can difine the order in which styles applied to the page. eg style defined in StyleSheetTheme will be overridden by the page and style defined in the page will be overridden by the Theme.&lt;BR&gt;Themes also have support for css&lt;BR&gt;and the list will go ooon&lt;BR&gt;&lt;BR&gt;Theme doesnt work at Design Time but StyleSheetTheme works &lt;BR&gt;&lt;BR&gt;For more details about Themes please see - &lt;A href="http://weblogs.asp.net/vimodi/articles/ThemesFaqs.aspx"&gt;http://weblogs.asp.net/vimodi/articles/ThemesFaqs.aspx&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;HTH,&lt;BR&gt;Vishal&lt;/FONT&gt;</description></item><item><title>Re: themes vs css</title><link>http://forums.asp.net/thread/1000393.aspx</link><pubDate>Tue, 26 Jul 2005 20:26:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1000393</guid><dc:creator>BrockAllen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1000393.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1000393</wfw:commentRss><description>Themes employ the use of CSS pages. They also utilize .skin files. These two approaches seem to conflict somewhat, but I'd suggest using CSS as much as possible. .skin files are useful for either 1) setting default properties of complex controls like Calendar. It's hard to reverse engineer how the Calendar renders to know how to work a CSS to fit, or 2) Where the complex control does support CssClass properties, it allows easy default setting of those properties. The GridView has on the HeaderStyle a CssClass property, so instead of having inline styes everywhere for your grid, you can now just set the CSS class (which will be defined in the Theme's CSS file, of course).&lt;BR&gt;&lt;BR&gt;-Brock&lt;BR&gt;</description></item><item><title>themes vs css</title><link>http://forums.asp.net/thread/1000300.aspx</link><pubDate>Tue, 26 Jul 2005 19:24:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1000300</guid><dc:creator>pxw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1000300.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1000300</wfw:commentRss><description>Hello List,&lt;BR&gt;&lt;BR&gt;Can someone tell me the big advantage of theme over css? Is there a major thing theme can do but css?&lt;BR&gt;Currently skin do not support design time editor. will it support in the final release? &lt;BR&gt;&lt;BR&gt;Thanks in advance,</description></item></channel></rss>