Why cant datareader be returned from a web services method?
Answer / Azhar Khan
DataReader is not designed to work with data serialization, so it cannot be returned directly from a web service method. Instead, you should use DataTable or List<>. To return the result as JSON, you would need to convert the DataTable or List<> object into a JSON format.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why can not datareader by returned from a web services method?
How LINQ is beneficial than Stored Procedures?
What are element operators?
Explain what is the use of system.xml.xlinq.dll?
What is the advantage of linq in c#?
What does linq?
Why do we use linq in c#?
How to use distinct in linq query?
What are anonymous types?
How to write LINQ query for Inner Join with OR condition?
What is difference between linq and sql entity framework?
Explain what are linq compiled queries?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)