Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases 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 October 11th, 2006, 10:12 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default Chapter 15 TIO 1504 Problem

Ok--found something else not working as stated:

TIO 1504, page 402

I cut (per step 8) the difficult from chapter 1 and put to chapter 2:
I refresh schemas and even recreate the controls..and don't get figure 15-2...the "difficulty" column stays...read on. (after playing with this some--it appears that if you don't have the property in the first child (but in a later child) it messes up.


<book ISBN="98-765142-654" Title="Italian-Thai Fusion cooking" Price="29.65">
      <chapter num="1" name="Pasta vs Noodles" >
        Abstract...
      </chapter>
      <chapter num="2" name="Tomatoes and Mangos" difficulty="easy">
        Abstract...
      </chapter>
      <chapter num="3" name="Durian - the Miracle Fruit">
        Abstract...
      </chapter>
      <chapter num="4" name="Passion Fruit and Amore">
        Abstract...
      </chapter>
      <chapter num="5" name="Recipes">
        Abstract...
      </chapter>
    </book>

In the Databound control, however, it has a "difficulty" column. Next to Pasta vs Noodles it says "Databound" and then next to Tomatoes and Mangos it says "easy"..however, when I build the page I get:

Server Error in '/BegAspNet2Db' Application.
--------------------------------------------------------------------------------

A field or property with the name 'difficulty' was not found on the selected data source.

 
Old October 12th, 2006, 12:50 PM
Authorized User
 
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

rsearing:
Ccould be a problem in the XML file. Please post the XML file you used after the cut & paste of "difficulty..."

 
Old October 12th, 2006, 02:55 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default

John,

I think I figured this out. The XML file portion was cut and pasted below..but I can paste the entire file later.

It appears that if you have an attribute (or property--not sure exactly what the term is--basically the 'difficulty' property) that is not stated in the first level, then you get the error. I validated this by removing the "name" property in chapters from all but the second. I got the same error.

The book states that if you have the "difficulty" property on the tomatos book (as below) that the field just won't be shown--not true. In the IDE it shows the difficulty column--shows "easy" next to chapter two and "Databound" next to chapter one..then, when you try to compile, you get an error--it doesn't simply skip the property as alluded to.

Kind Regards,
Rob






Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 15 problem golfbird BOOK: Beginning Visual C++ 6 7 September 9th, 2008 12:29 PM
Chapter 15 problem PhilM BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 16 March 10th, 2008 02:46 PM
Chapter 15 Problem rsearing BOOK: Beginning ASP.NET 2.0 and Databases 3 October 12th, 2006 02:59 PM
Chapter 15 Search Problem PhilM BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 November 2nd, 2004 05:08 PM
A new chapter 15 problem with BBcodes PhilM BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 September 11th, 2004 11:11 PM





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