Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Enhancing Microsoft Content Management Server with ASP.NET 2.0

You're reading from   Enhancing Microsoft Content Management Server with ASP.NET 2.0 Use the powerful new features of ASP.NET 2.0 with your MCMS Websites

Arrow left icon
Product type Paperback
Published in Aug 2006
Publisher Packt
ISBN-13 9781904811527
Length 224 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Enhancing Microsoft Content Management Server with ASP.NET 2.0
Credits
About the Authors
About the Reviewers
1. Preface
1. Installation 2. Getting Started with the Development Environment FREE CHAPTER 3. Using Master Pages 4. Navigation Controls 5. Applying Themes 6. Authentication Controls and Membership Providers 7. How-Tos, Tips and Tricks

Creating a Theme


Let's start by creating a theme for the TropicalGreen site. We will name the theme Sunny and use it to apply a new design on our website. In ASP.NET 2.0, themes used by a single project are stored directly below the project's application folder in a special folder named App_Themes. You can create as many themes (or sub folders) as your site requires.

  1. 1. First, let's create the App_Themes folder. In Solution Explorer, right-click the TropicalGreen project and select Add ASP.NET folder | Theme. A new folder named App_Themes appears.

  2. 2. Within the App_Themes folder is a subfolder named Theme1. Rename the folder to Sunny.

Applying a Theme to the Entire Site

We have created a theme named Sunny. Now let's apply it to the TropicalGreen site.

In the web.config file, look for the<pages> tag and add an attribute named theme and set its value to Sunny.

<pages validateRequest="false"
theme="Sunny"/>

We have applied the Sunny theme to the TropicalGreen site. However, the theme...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image