Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Services using Strongly Typed Datasets Return Value
Message
De
21/09/2006 19:19:37
 
 
À
21/09/2006 17:14:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
01156151
Message ID:
01156228
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform