TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
priyanka
NA
215
124k
Sorttop 10 Record Based on date in descending order
Aug 1 2017 8:34 AM
var db = (from usr in entity.USER_MASTER
join usrlog in entity.USER_LOG
on usr.USER_ID equals usrlog.USER_ID
select new
{
SlNo = usrlog.SLNO,
UserId = usr.USER_ID,
UserNm = usr.USER_NM,
LogTime = usrlog.LOG_TIME,
LogDet = usrlog.LOG_DETAILS,
CreatedDt = usrlog.CREATED_DT
}).Take(10).ToList().OrderByDescending(usr=>usr.CreatedDt);
I want to sort top 10 record based on date in descending wise,but it throws an error
The data source does not support server-side data paging.
Plz suggest,what i am doing wrong
Reply
Answers (
1
)
session and cookies in mvc5
Linq query to Nlinq i.e. linq to memory