Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing DataSet across Web Service
Message
De
11/10/2003 18:27:11
 
 
À
11/10/2003 17:15:42
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00837848
Message ID:
00837859
Vues:
23
Hmmm ... and you're binding the DataSet to the DataGrid the same way (after you call the WebService to get the data)? If so, I'm not sure what the problem might be now ... check out things like maybe the Table name. You're sure the DataSet is being returned correctly and that there's data in the DataSet?

~~Bonnie


>>I don't think the problem is with returning the DataSet, I think it's in your WebService itself ... you never instantiated the loData object:
>>
>><WebMethod()> _
>>Public Function GetForumDataSet() As DataSet
>>
>>   ' Get the XML string as before
>>   lcHtml=...
>>
>>   ' However, in this method, we will now convert it into a DataSet
>>   Dim loData As DataSet
>>
>>   ' I Added this line:
>>   loData = new DataSet
>>
>>   loData=ImportXML(loData, lcHtml)
>>   Return loData
>>End Function
>>
>
>You're right. I forgot to include that line. Now, the application runs without an error. However, the data doesn't appear in the grid.
>
>With the same code, if I call the GetForum() instead, which is returning XML string, the data appears in the grid. But, when we call the GetForumDataSet() from the Web Service and that it returns the DataSet, no data appears.
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