Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Services using Strongly Typed Datasets Return Value
Message
From
21/09/2006 15:01:22
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Web Services using Strongly Typed Datasets Return Value
Miscellaneous
Thread ID:
01156151
Message ID:
01156151
Views:
79
Hello,
I created a Web Service using a Strongly Typed dataset. Here is the basic design of the method I am trying to use:
Public Function GetUserByUserName(ByVal userName As String) As DataTable
     Dim userAdapter As New UserDatasetTableAdapters.UserTableAdapter

     Dim users As UserDataset.UserDataTable = userAdapter.GetDataByUserName(userName)

     If users.Rows.Count = 1 Then
          'Return user data
          Return users
     Else
          'Return empty table with no schema
          users.Reset()
          Return users
     End If
End Function
Now, if I am going to call this from an ASP.NET project, what should my return value be? Before I have used dataset, and it worked fine, but should I be adding my datatable to a dataset and then return the dataset?

Thanks for any advice,
Mike
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform