Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why cant datareader be returned from a web services method?



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

Post New Answer

More LINQ Language-Integrated Query Interview Questions

Why can not datareader by returned from a web services method?

1 Answers  


How LINQ is beneficial than Stored Procedures?

1 Answers  


What are element operators?

1 Answers  


Explain what is the use of system.xml.xlinq.dll?

1 Answers  


What is the advantage of linq in c#?

1 Answers  


What does linq?

1 Answers  


Why do we use linq in c#?

1 Answers  


How to use distinct in linq query?

1 Answers  


What are anonymous types?

1 Answers  


How to write LINQ query for Inner Join with OR condition?

1 Answers  


What is difference between linq and sql entity framework?

1 Answers  


Explain what are linq compiled queries?

1 Answers  


Categories