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

How you can retrieve a single row with linq?

1 Answers  


What do you understand by linq? Enlist its types.

1 Answers  


What is the difference between N-layer and N-tier architecture?

1 Answers  


Differentiate between conversion operator “todictionary” and “ienumerable” of linq.

1 Answers  


What is system linq?

1 Answers  


Define api in linq?

1 Answers  


Explain what are compiled queries?

1 Answers  


What is the query syntax?

1 Answers  


How can you handle concurrency at field level in LINQ to SQL?

1 Answers  


Differentiate between select() and selectmany() method in linq.

1 Answers  


Difference between linq and stored procedures?

1 Answers  


What is Expression Trees?

1 Answers  


Categories