Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying the Jumpstart WebService
Message
From
19/07/2007 13:51:43
 
 
To
19/07/2007 06:07:27
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01241798
Message ID:
01242078
Views:
17
>Hi all,

>I appreciate some help here. Stuck at "Step 4: Creating the Orders Web Service". See >codes below

>Public Function GetOrdersByCustomerID(ByVal custID As String) As DataTable
>' Instantiate the Orders business object
>Dim oOrder As New Orders()

>' Get all orders for the specified customer
>Return oOrder.GetOrdersByCustomerID(custID)
>End Function

>At the Return, the whole line is underline in blue. Message is:

>Value of type 'Oakleaf.MM.Main.collections.mmBindingList(Of >Acme.OrderSystem.Business.OrderEntity)' cannot be converted to 'System.Data.DataTable'

>Please advise.

>Regards

The GetOrdersByCustomerID(ByVal custID As String) function returns a mmBindingList(Of OrdersEntity) not a DataTable. This was defined in Step 6.3 of the Jump Start: Creating Business object - VB.NET.

Good Luck
Greg Lee
GCL Software
Previous
Reply
Map
View

Click here to load this message in the networking platform