Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 November 1st, 2014, 02:38 PM
Authorized User
 
Join Date: Mar 2011
Posts: 74
Thanks: 21
Thanked 2 Times in 2 Posts
Default Chapter 10 page 361 Missing Code in Example

Just want to point out that in Chapter 10, page 361 (very bottom of the page) this errata:

This Code
Code:
<input id="SayHello" type="button" value="Say Hello" />
Should Be:

Code:
<input id="SayHello" type="button" value="Say Hello" onclick="helloWorld();" />
Sure, this is more than likely listed in the errata, but I want to show it here.

The greeting fails without "onclick="helloWorld()" />.

This may be obvious to experienced programmers.

It's all in the details!

Imar: Great book!
JJ

Last edited by jpjamie; November 1st, 2014 at 03:25 PM..
 
Old November 3rd, 2014, 02:47 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 JJ,

The code at the end of page 361 is fine as it's just the starting point for the button. But it looks like you missed step 5 on page 362 that reads:

Add an onclick attribute to the button so that it calls the helloWorld method when you click it. Your code should look like this:
Code:
<input id="SayHello" type="button" value="Say Hello" onclick="helloWorld();" />
It's all in the details indeed ;-)

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!
 
Old November 3rd, 2014, 07:41 PM
Authorized User
 
Join Date: Mar 2011
Posts: 74
Thanks: 21
Thanked 2 Times in 2 Posts
Default

Now I'm 0 for 2!!
Don't know how I miss the obvious...it was RIGHT THERE!

At least I figured it out.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 10 missing .wsp solution ag83 BOOK: Professional SharePoint 2013 Administration 0 March 26th, 2014 05:51 AM
Missing Source Code for Chapters 2-10, 12, 13, 15? haroldbingo BOOK: Beginning JavaServer Pages 5 February 16th, 2008 11:32 AM





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