T
Tim Medcalf
Hi all,
I just want to make sure i'm not doing anything stupid, but it seems to me
that its not possible to return a simple datatable from a WebMethod - it has
to be a full dataset.
The online help seems to state that it is possible with either dataset or
datatable (both remotable, both serializable), but only dataset works for
me.
If i try it with a datatable, when querying the asmx file, i get a message
saying the object cannot be serialized becuase it is an interface. It works
fine when the same datatable is added to a dataset.
Is this correct or am i doing something silly?
Additionally, if this is correct behaviour, could anyone tell my why it is?
Both objects descend from MarshalByValue, and both have the same Interfaces
according to the docs. Any ideas?
Thanks in advance
Tim
I just want to make sure i'm not doing anything stupid, but it seems to me
that its not possible to return a simple datatable from a WebMethod - it has
to be a full dataset.
The online help seems to state that it is possible with either dataset or
datatable (both remotable, both serializable), but only dataset works for
me.
If i try it with a datatable, when querying the asmx file, i get a message
saying the object cannot be serialized becuase it is an interface. It works
fine when the same datatable is added to a dataset.
Is this correct or am i doing something silly?
Additionally, if this is correct behaviour, could anyone tell my why it is?
Both objects descend from MarshalByValue, and both have the same Interfaces
according to the docs. Any ideas?
Thanks in advance
Tim