Wrox Programmer Forums
|
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
 
Old April 25th, 2011, 02:15 PM
Authorized User
 
Join Date: Feb 2011
Posts: 23
Thanks: 7
Thanked 0 Times in 0 Posts
Default Validation Message Box won't display

I'm having trouble with step 8 of Try It Out "Writing Client and Server Side Validation Methods. On page 312 it says to change Show Summary to false and Show MessageBox to true. Before that step the summary shows fine. After that step the MessageBox does not show. I've tried it in Chrome and Firefox.

Any ideas?
 
Old April 25th, 2011, 02:22 PM
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,

Can you post the code for the page? If you post it, please copy it to Notepad first and then use the code button (#) to mark it as code.

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!
The Following User Says Thank You to Imar For This Useful Post:
floridaguy (April 25th, 2011)
 
Old April 25th, 2011, 02:35 PM
Authorized User
 
Join Date: Feb 2011
Posts: 23
Thanks: 7
Thanked 0 Times in 0 Posts
Default

I compared the source from the book to mine and found a typo in the JavaScript
ValidatPhoneNumbers corrected to ValidatePhoneNumbers

Now the MessageBox displays. Why doesn't this break the summary too?
 
Old April 26th, 2011, 03:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Why doesn't this break the summary too?
Not entirely sure. I think the inner workings of the JavaScript generated by the controls to handle the summary are more robust, and continue to work even when an error occours.

Other than that, I see no reason why one would fail and the other wouldn't.

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
resubmitting how to display message box tsuersrb Excel VBA 1 March 10th, 2008 07:06 AM
How to display message box in query? tsuersrb Excel VBA 0 February 7th, 2008 02:17 AM
Message Box for Validation Summary diptidjadhav ASP.NET 1.0 and 1.1 Basics 0 April 3rd, 2006 05:15 AM
Message Box Validation abhisheksud Classic ASP Professional 0 September 12th, 2005 07:56 AM
How to display a Message Box creative_eye General .NET 8 February 17th, 2005 07:23 PM





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