Thursday, November 1, 2012

Retrieving top 10 records from Data Table using LINQ in ASP.NET

The below code will retrieve top 10 records from the data table.


Note: Add using System.Linq on the top.

If intellesense is not showing up, add reference to System.Core

We can copy these records to another data table as below


Happy coding…

No comments:

Post a Comment