It is not possible to assign the results of the web Service method directly to the DataSet, (though I swear I did this when I previewed the assignment some months ago.) It must be read as an XML file and then loaded into the DataSet. Here is a bit of code for that. Then you can bind the DataSet to the GridView
XmlNode node = zip.GetInfoByCity(txtCity.Text); DataSet ds = new DataSet(); XmlNodeReader reader = new XmlNodeReader(node); ds.ReadXml(reader);
No comments:
Post a Comment