Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
  #11 (permalink)  
Old February 15th, 2010, 07:34 PM
Registered User
 
Join Date: Aug 2009
Location: Midwest
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error messages not displayed in browser. CH9; 'Extending Contact Form' Try It Out

After completing the Try it Out: 'Extending the Contact Form', the browser displays the asterisks correctly given the particular user input, but omits the error message. I checked the markup for ContactForm.ascx with the supplied code I downloaded from the Wrox website, and it matches correctly.

Here is the markup of one of the validation controls, which is similar to the other controls in the exercise in that they all have Display set to Dynamic, and an Error Message.

Code:
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
 ErrorMessage="PLease enter an e-mail address." 
 ControlToValidate="txtEmailAddress" Display="Dynamic">*</asp:RequiredFieldValidator>
Again, the page works correctly in the browser except that the Error Messages are not displayed. Thanks.

-John
  #12 (permalink)  
Old February 15th, 2010, 07:36 PM
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

Hi there,

They are supposed to display just the asterisk with this code; the error message is shown in the ValidationSummary....

Hope this helps,

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!
  #13 (permalink)  
Old February 15th, 2010, 07:49 PM
Registered User
 
Join Date: Aug 2009
Location: Midwest
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Indeed, I just noticed that. lol. Thanks much.




Similar Threads
Thread Thread Starter Forum Replies Last Post
LINQ Error ? Chapter 13 workidoo BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 22nd, 2008 09:37 AM
Chapter 13: Error in user.php pherank BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 4th, 2008 09:09 PM





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