Click here to Skip to main content
15,915,082 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionaspnet core use TempData error! Pin
Member 940386815-Jun-22 20:21
Member 940386815-Jun-22 20:21 
AnswerRe: aspnet core use TempData error! Pin
Richard Deeming15-Jun-22 21:20
mveRichard Deeming15-Jun-22 21:20 
AnswerRe: aspnet core use TempData error! Pin
Mycroft Holmes16-Jun-22 12:41
professionalMycroft Holmes16-Jun-22 12:41 
QuestionSELECT DISTINCT Pin
kjell.ek19-May-22 3:16
kjell.ek19-May-22 3:16 
AnswerRe: SELECT DISTINCT Pin
Ron Nicholson19-May-22 6:21
professionalRon Nicholson19-May-22 6:21 
AnswerRe: SELECT DISTINCT Pin
Member 1562749519-May-22 11:11
Member 1562749519-May-22 11:11 
GeneralRe: SELECT DISTINCT Pin
Richard Deeming19-May-22 21:42
mveRichard Deeming19-May-22 21:42 
GeneralRe: SELECT DISTINCT Pin
kjell.ek20-May-22 2:58
kjell.ek20-May-22 2:58 
GeneralRe: SELECT DISTINCT Pin
Alaren23-Jun-22 5:23
Alaren23-Jun-22 5:23 
QuestionMilliseconds from excel Pin
kjell.ek16-May-22 10:10
kjell.ek16-May-22 10:10 
AnswerRe: Milliseconds from excel Pin
Richard Deeming16-May-22 21:35
mveRichard Deeming16-May-22 21:35 
GeneralRe: Milliseconds from excel Pin
kjell.ek16-May-22 23:15
kjell.ek16-May-22 23:15 
AnswerRe: Milliseconds from excel Pin
Raj Kumar7918-Oct-22 5:12
Raj Kumar7918-Oct-22 5:12 
QuestionASP.NET Gridview load data Pin
Herman<T>.Instance28-Apr-22 3:16
Herman<T>.Instance28-Apr-22 3:16 
AnswerRe: ASP.NET Gridview load data Pin
Richard Deeming28-Apr-22 4:40
mveRichard Deeming28-Apr-22 4:40 
GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance2-May-22 0:47
Herman<T>.Instance2-May-22 0:47 
GeneralRe: ASP.NET Gridview load data PinPopular
Dave Kreskowiak2-May-22 2:12
mveDave Kreskowiak2-May-22 2:12 
GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance2-May-22 3:23
Herman<T>.Instance2-May-22 3:23 
GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance3-May-22 4:46
Herman<T>.Instance3-May-22 4:46 
GeneralRe: ASP.NET Gridview load data Pin
Richard Deeming3-May-22 5:31
mveRichard Deeming3-May-22 5:31 
Sorting needs to be applied before the paging.

In your first example, you've returned a page of unsorted records, and are then trying to sort them. That's the most likely cause of the error.

In your second example, you've defined the sorting parameter, so your code is responsible for sorting the data. The model binding won't try to sort the returned data again.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance3-May-22 5:38
Herman<T>.Instance3-May-22 5:38 
GeneralRe: ASP.NET Gridview load data Pin
Richard Deeming3-May-22 5:48
mveRichard Deeming3-May-22 5:48 
GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance3-May-22 7:12
Herman<T>.Instance3-May-22 7:12 
GeneralRe: ASP.NET Gridview load data Pin
Richard Deeming3-May-22 21:38
mveRichard Deeming3-May-22 21:38 
GeneralRe: ASP.NET Gridview load data Pin
Herman<T>.Instance3-May-22 22:03
Herman<T>.Instance3-May-22 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.