Why cant datareader be returned from a web services method?
Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category