M
moondaddy
Is there a way to convert a regular dataset to a strongly typed dataset?
I'm receiving a dataset from a webservice and when it was created on the
server, it was created as a strongly typed dataset. However, the return
type of the webservice is just Dataset because they can not return strongly
typed datasets (as far as I know...). Now back on the client, I want to use
this dataset as a strongly typed one. I get a cast exception if I do
something like this
dim ds as dsCustomer = CType(MyWebServiceCall(CustID),dsCustomer).
Even though this line doesn't work, it shows you what I want to do. Any
good ideas?
I'm receiving a dataset from a webservice and when it was created on the
server, it was created as a strongly typed dataset. However, the return
type of the webservice is just Dataset because they can not return strongly
typed datasets (as far as I know...). Now back on the client, I want to use
this dataset as a strongly typed one. I get a cast exception if I do
something like this
dim ds as dsCustomer = CType(MyWebServiceCall(CustID),dsCustomer).
Even though this line doesn't work, it shows you what I want to do. Any
good ideas?