Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 8th, 2011, 07:15 PM
Registered User
 
Join Date: Apr 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Theme vs StyleSheetTheme

Hi,

First of all, I'd like to say I love this book. It's very informative and easy to use.

My question is this: Why would you use theme instead of stylesheettheme? I can't think of a situation where a stylesheettheme could be overriden, unless specifically programmed.


In brief, in what situation would using theme be required instead of stylesheettheme?

Thanks
  #2 (permalink)  
Old April 9th, 2011, 05:47 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
First of all, I'd like to say I love this book. It's very informative and easy to use.
Thank you!

The main reason the Theme option was introduced in ASP.NET is the ability to modify existing web sites without the need to change their source code. So, if you have an old web site you want to give a new appearance but you don't have access to its source (or you don't want to modiy it), you can use a Theme to enforce a global look and feel.

In addition, you can use a Theme to programamtically override settings.

In most other cases, a styleSheetTheme should be the preferred option.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!


Similar Threads
Thread Thread Starter Forum Replies Last Post
StyleSheetTheme wildcatfan101 BOOK: Beginning ASP.NET 4 : in C# and VB 13 September 11th, 2010 03:50 PM
Monochrome Theme jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 18th, 2010 12:45 PM
Exception of get theme JasonF430 ASP.NET 2.0 Basics 0 April 16th, 2008 01:31 AM
Theme Selector wont pick up other theme Tawanda BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 May 4th, 2007 08:44 AM
StyleSheetTheme in master page anujrathi ASP.NET 2.0 Professional 0 December 8th, 2006 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.