The following code example demonstrates how to fetch top five records from a list using Linq query. I will extend my pervious example "Display total price in Repeater footer in asp.net using jquery" to create a Linq query to fetch top five records from a list.
The following code example demonstrates how to use Take Method to return top 5 records from a list.
var result = from j in Display().Take(5)
select j;