Friday, 22 June 2012

Select Top n Rows Using LINQ in asp.net


List<class name> objList = dalHelper.DataLayerClassName.MethodName(argument);            
              return objList = objList.Take(5).ToList();

5===> Here u can give how many numbers u want..

No comments:

Post a Comment