Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 December 3rd, 2007, 12:01 AM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB Chap 8 p270 Try It Out

Hello.

I have read other threads on this topic but still had some trial and error to get it working. I need some help understanding why my "solution" finally got it working correctly.

My only problem occurred when I tried to complete and Update using the DetailsView control (the Edit mode itself worked just fine). I got the following error:

"You have specified that your update command compares all values on SqlDataSource 'SqlDataSource2', but the dictionary passed in for oldValues is empty. Pass in a valid dictionary for update or change your mode to OverwriteChanges."

Here is the WHERE clause in the UPDATE parameter of my datasource for the DetailsView. ...WHERE [FixtureID] = @original_FixtureID

I figured it couldn't hurt to try, so I changed the ConflictDetection parameter to "Overwrite Changes" and it worked fine. Go figure.

Can anyone explain how exactly that works, especially in conjunction with the DataKeyNames property because I got several errors about that while working through it all.

More importantly, can anyone some up what the steps in this exercise should have been? It was awfully confusing, and the errata suggestions didn't help at all.

Thanks in advance!

BKing








Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap. 9 - ValidationSummary Ciupaz BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 May 28th, 2008 09:58 PM
VB Ch8 p270 Try It Out Updating Existing Records Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 February 28th, 2008 05:55 AM
Chap 8 - Try It Out Page 270 - 271 VB Deano252 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 May 30th, 2007 07:34 AM
Chapter 8, ASP.NET 2 P270 onwards sevans BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 May 3rd, 2007 04:54 PM
help in chap 15 manal_sag BOOK: Beginning ASP 3.0 2 May 25th, 2005 02:59 AM





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