 |
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
|
|
|
|
|

September 16th, 2010, 07:31 AM
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapter 9 - TRY IT OUT - Extending the Contact Form
The error message does not display when the form is not filled out correctly. The * displays instead but not the error message. I compared my code to the code I downloaded (code in the mark-up & properties) but cannot identify my mistake.
Thanks!
|
|

September 16th, 2010, 08:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
When you post here, can you please specifiy the page number of the exercise as well? Makes it a bit easier for me to see what you're talking about.
Can you post the code for the control? If you do please use the Code button on the toolbar.
Cheers,
Imar
|
|

September 17th, 2010, 07:25 AM
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapter 9 - Pages 307 - 309
Hi Imar,
The excercise is on pages 307 to 309. A sample of the code for the required validation is as follows: (sorry if I am posting the code incorrectly, I am not sure what the Code button is on the toolbar)
---------
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="EmailAddress" CssClass="ErrorMessage" Display="Dynamic"
ErrorMessage="Enter an e-mail address">*</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="ser
----------
When I run the Contact Us web form and click on the button with anything in the text box, the * shows up next to the text box and not the error message. If I remove the * from the textmode property, the error message does appear. This example occurs in all instances with the text boxes in this exercise.
Thanks for your help!
Robbie
Last edited by robbiehaas; September 17th, 2010 at 07:31 AM..
|
|

September 17th, 2010, 07:36 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Robbie,
This is by design. Take a look at step 10 of the exercise on page 309 for more information.
Cheers,
Imar
|
|

September 17th, 2010, 07:38 AM
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I cannot believe I missed that...I could not have been more clear.
Thanks!
Robbie
|
|

September 17th, 2010, 07:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
BTW:
>> I am not sure what the Code button is on the toolbar
When you enter a post, there's a toolbar above the text editor. The button with the # character on it wraps your text in code tags which identifies your text as code.
Hope this helps,
Imar
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Contact form From Chapter 9 |
susu2009 |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
3 |
November 20th, 2009 08:49 AM |
| Contact form? |
philthy |
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 |
1 |
July 23rd, 2009 05:14 PM |
| contact form |
Will |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
6 |
February 24th, 2009 01:42 PM |
| Chapter 9 pps 314-316 Contact Form User Control |
Featheriver |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
1 |
February 2nd, 2009 03:19 AM |
| Contact Form |
myself |
Classic ASP Basics |
1 |
November 18th, 2006 11:16 AM |
|
 |
|