Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET For VFP Developers Book - Problem with Example Code
Message
 
To
21/07/2003 19:36:17
Jan Tervonen
Mammography Reporting System
Seattle, Washington, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00812181
Message ID:
00812239
Views:
13
Hi Jan,

The message you are getting relates to code that would be in the Orders business object, created in chapter 8. In that chapter it talks about how to create business objects that can save and retrieve data. Chapter 8 doesn't give complete code for all the different business objects so the best place to look at how to set up the Orders business object is to look at the sample code you can download. The error you are getting is stating that the DataAdapter for the Orders does not have a select statement assigned to it so it can't then infer how to create a delete statement in the commandbuilder.

>Hello,
>
>I have been following through the examples in the book, and am running into a problem with one of the VB.Net examples on page 341 - adding code to the Update button of the Order Edit Web page.
>
>I entered the code as shown, and it compiled without error. However, when executing the example, the following error occurs when pressing the "Update" button:
>
>The DataAdapter.SelectCommand property needs to be initialized.
>Source Error: Line 79 in data.vb
>The line is: DataAdapter.DeleteCommand = CommandBuilder.GetDeleteCommand()
>
>All the examples up to this point have worked, and since there are no compilation errors, I'm not sure what the problem is. No example code exists for Chapter 10 to compare.
>
>Help please.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform