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 19:19:37
 
 
To
21/09/2006 17:14:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01156151
Message ID:
01156228
Views:
16
Hi Mike,

Kevin was wrong ... I was busy going out for a run and eating lunch and didn't even see your post, so I wasn't in the process of replying with exactly the same advice (to use XML) ... but NOW I will. <g>

You definitely should consider using XML and there's no reason you can't, given your current method. Just alter it slightly, something like this:
Public Function GetUserByUserName(ByVal userName As String) As String
     Dim userAdapter As New UserDatasetTableAdapters.UserTableAdapter

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

     Return users.GetXml()
End Function
~~Bonnie



>Well, I was thinking that too, but the problem is with the typed dataset I am filling a datatable, not a dataset. Should I just create a temp dataset in code and add my datatable to it? Doesn't doing it that was defeat the purpose of a typed dataset?
>
>Edit: BTW, thanks for the help.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform