Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix 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
 
Old April 27th, 2013, 06:38 PM
Registered User
 
Join Date: Apr 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Chapter 5

Hi, first time poster. I am working my way through this book chapter by chapter and must say it is well written and straight forward enough for a newbie like me to follow, thank you.

The problem i have is that when running the sell page and posting empty fields the reporting error messages are not displaying in red. I have checked the code several times and can not for the life of me see anyting wrong.

Section from StyleSheet.css
*/
legend{
color: #84a24a;
font-size: 1.3em;
text-transform: uppercase;
font-weight: bold;
font-family: "Arial Narrow";
}

.field-validation-error, .validation-summary-errors{
color: red;
}
Your help and guidance would be much appreciated.
 
Old April 28th, 2013, 06:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

That looks fine to me too. I can think of two reasons why it doesn't work:

1. The browser is using an old version of the CSS file. Try Ctrl+F5 on the page with the errors to force a fresh copy.
2. Your CSS is somehow broken (maybe because of the closing comment tag? Does it have an opening part as well?)

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!
The Following User Says Thank You to Imar For This Useful Post:
Sipps (April 28th, 2013)
 
Old April 28th, 2013, 03:30 PM
Registered User
 
Join Date: Apr 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Thank you

Quote:
Originally Posted by Imar View Post
Hi there,

That looks fine to me too. I can think of two reasons why it doesn't work:

1. The browser is using an old version of the CSS file. Try Ctrl+F5 on the page with the errors to force a fresh copy.
2. Your CSS is somehow broken (maybe because of the closing comment tag? Does it have an opening part as well?)

Imar
Thank you Imar the Ctrl+F5 did the trick, now on with learning and coding.
Thanks again
Sipps





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 --> Chapter 5 Continuity?? theboffin BOOK: Professional ASP.NET MVC 4 4 July 8th, 2013 03:36 AM
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





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