Re: Transferring data to heterogeneous clients
- From: mojeza <najyer@xxxxxxxxxxx>
- Date: 7 May 2007 06:13:46 -0700
Your WebMethod was returning Object, wasn't it? Instead, is should return
GenericTable() (which is "Array of GenericTable"). Why does it need to
return Object?
--
John Saunders [MVP]
I posted a replay on May 4th but I cannot see it so I will try to
posted again.
I cannot cast my WebMethod as array of GenericTable class because this
class doesn't exist at design time. If I try I get error which say:
Type 'GenericTable' is not defined'.
Looks like I wonn't be able to create generic functionality unless I
define generic class with predefined number of public members and use
this class no for every request which will return result of the SELECT
statement. Class may look like:
Public Class GenericTable
Public Col1 As String
Public Col2 As String
...
Public Col25 As String
End Class
The problem with this aproach is that I won't be able to return result
sets with number of columns bigger than the number of public memebers
of GenericTable class. Additionally it seams like not very economical
solution since every return set will have the same number of columns
even if SELECT statement would return only 2 columns.
.
- References:
- Re: Transferring data to heterogeneous clients
- From: mojeza
- Re: Transferring data to heterogeneous clients
- From: John Saunders [MVP]
- Re: Transferring data to heterogeneous clients
- From: mojeza
- Re: Transferring data to heterogeneous clients
- From: John Saunders [MVP]
- Re: Transferring data to heterogeneous clients
- From: mojeza
- Re: Transferring data to heterogeneous clients
- From: mojeza
- Re: Transferring data to heterogeneous clients
- From: John Saunders [MVP]
- Re: Transferring data to heterogeneous clients
- From: mojeza
- Re: Transferring data to heterogeneous clients
- From: John Saunders [MVP]
- Re: Transferring data to heterogeneous clients
- Prev by Date: How to set that a web service should use ASP.NET 1.1
- Next by Date: Re: clipboard
- Previous by thread: Re: Transferring data to heterogeneous clients
- Next by thread: Re: calling ThreadPool.SetMaxThread in ASP.NET
- Index(es):
Relevant Pages
|