Hi John,
I have a testing web method that returns a DataView. It compiled ok but
when I update the web reference from client application project, I got the
following error,
<html>
.......
<title>You must implement the Add(System.Data.DataRowView) method on
System.Data.Datavidw because it inherits from ICollection.</title>
.....
Why? How can I solve it?
My web method is something like
[WebMethod(Description="Method returns DataView")]
[SoapInclude(typeof(DataView))]
public DataView getConfirmListDV(string returnNo)
{
DataView dv = new DataView();
...
return dv;
}
Thanks for your help!
Tedmond
"John Bailo" wrote:
A web method can return any datatype which is serializable in the SOAP XML
format.
Tedmond wrote:
Dear all,
How to code a Web Service function that returns either a DataTable or
DataReader to the clients? Or I should use other alternative?
Thanks for any help!
Tedmond
--