adsense

Friday, October 21, 2011

Linq Select Top X

use flowing linq query to ger top x (x is no of rows required) for the result


var result= (from t in tblItems.AsEnumerable()
                   select t).Take(x);

cheers
Samitha


No comments:

Post a Comment