Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 24th, 2016, 09:45 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6: Adding a theme to web.config file

Hello,

I am learning asp.net and following precisely the do it yourself, but I am stuck at this one. It says to create a folder app_theme, drag the styles.css inside change its name to match the theme which is Monochrome and then delete the old style link from the master page.

At the end we should go to the web.config file and add the theme as follow:
<pages theme="Monochrome"><pages/>

However, After doing all and refreshing my default page my theme does not appear, like there is something that does not work. The page is blank without any theme at all.

Any help will be appreciated.
Reply With Quote
  #2 (permalink)  
Old May 31st, 2016, 10:08 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,957
Thanks: 79
Thanked 1,556 Times in 1,533 Posts
Default

Hi there,

When you look at the browser's source, do you see a link tot the Monochrome theme? Maybe the link is there but the CSS isn't applied?

Also, take a look at the Themes folder in Visual Studio. Does the Monochrome theme's folder contain your CSS files?

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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6: p235 adding images to your [Monochrome] Theme RichM-UK BOOK: Beginning ASP.NET 4.5 : in C# and VB 4 July 23rd, 2014 09:55 AM
Chapter 8: Registering User controls in the Web.config File slittle BOOK: Beginning ASP.NET 4.5 : in C# and VB 5 June 25th, 2014 10:45 AM
CHAPTER 6 -ADDING THEME TO WEB.CONFIG FILE bankole BOOK: Beginning ASP.NET 4 : in C# and VB 2 February 8th, 2011 09:16 AM
Logins stopped working after adding to web.config troyb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 September 2nd, 2008 04:34 PM
web.config file apry BOOK: Beginning ASP.NET 1.0 1 May 27th, 2004 07:39 AM



All times are GMT -4. The time now is 12:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.