Discuss the differences between Theme and CSS ?

 Posted by Bharathi Cherukuri on 7/30/2012 | Category: ASP.NET Interview questions | Views: 2954 | Points: 40
Answer:

1. By using Themes, not only style properties can be defined, but also many properties of a control or page can be defined.
For example, using themes, you can specify the graphics for a TreeView control, the template layout of a GridView control, and so on.

2. Graphics can also be included in Themes.

3. Themes will not cascade the way style sheets do. By default, any property values defined in a theme referenced by a page's Theme property override the property values declaratively set on a control, unless you explicitly apply the theme using the StyleSheetTheme property.

4. You cannot apply multiple themes to a page, unlike style sheets where multiple style sheets can be applied. Only one theme can be applied to each page.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response