Click here to Skip to main content
14,660,664 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: EntityFramework: Can we minimize sorting code Pin
Richard Deeming8-Feb-18 1:58
mveRichard Deeming8-Feb-18 1:58 
QuestionAny free health monitoring dashboard exist Pin
Mou_kol5-Feb-18 22:00
MemberMou_kol5-Feb-18 22:00 
AnswerRe: Any free health monitoring dashboard exist Pin
Richard MacCutchan5-Feb-18 23:29
mveRichard MacCutchan5-Feb-18 23:29 
QuestionSending a collection of objects to the view in MVC Pin
Davstr5-Feb-18 4:42
MemberDavstr5-Feb-18 4:42 
AnswerRe: Sending a collection of objects to the view in MVC Pin
Richard Deeming5-Feb-18 8:25
mveRichard Deeming5-Feb-18 8:25 
GeneralRe: Sending a collection of objects to the view in MVC Pin
Davstr5-Feb-18 18:24
MemberDavstr5-Feb-18 18:24 
QuestionASP.Net MVC:clicking on routelink url not passing all the data to action Pin
Mou_kol5-Feb-18 3:50
MemberMou_kol5-Feb-18 3:50 
AnswerRe: ASP.Net MVC:clicking on routelink url not passing all the data to action Pin
Richard Deeming5-Feb-18 8:17
mveRichard Deeming5-Feb-18 8:17 
The URL /Customers/Edit/1/ALFKI matches both the PageWithSort and PageWithId routes. As a result, the first matching route will be selected - PageWithSort - and the ALFKI string will be available as a parameter called SortColumn.

Since your action doesn't take a parameter called SortColumn, and the route doesn't contain any data for a parameter called id, the parameter will be set to null.

You can see this for yourself using the ASP.NET Routing Debugger[^] package.

You'll need to rename the parameters on your actions so that they match the parameters in the route. Since the PageWithSort route will match anything that the other two routes would, that's the one you need to match.



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


GeneralRe: ASP.Net MVC:clicking on routelink url not passing all the data to action Pin
Mou_kol5-Feb-18 21:56
MemberMou_kol5-Feb-18 21:56 
QuestionHow to calculate page no for newly inserted records Pin
Mou_kol5-Feb-18 2:54
MemberMou_kol5-Feb-18 2:54 
AnswerRe: How to calculate page no for newly inserted records Pin
Maciej Los5-Feb-18 3:23
mveMaciej Los5-Feb-18 3:23 
Questionasp.net mvc routing with two controller reference Pin
Mou_kol5-Feb-18 1:18
MemberMou_kol5-Feb-18 1:18 
AnswerRe: asp.net mvc routing with two controller reference Pin
Richard Deeming5-Feb-18 8:09
mveRichard Deeming5-Feb-18 8:09 
GeneralRe: asp.net mvc routing with two controller reference Pin
Mou_kol5-Feb-18 21:54
MemberMou_kol5-Feb-18 21:54 
GeneralRe: asp.net mvc routing with two controller reference Pin
Richard Deeming6-Feb-18 2:11
mveRichard Deeming6-Feb-18 2:11 
GeneralRe: asp.net mvc routing with two controller reference Pin
Mou_kol6-Feb-18 2:38
MemberMou_kol6-Feb-18 2:38 
GeneralRe: asp.net mvc routing with two controller reference Pin
Richard Deeming6-Feb-18 2:50
mveRichard Deeming6-Feb-18 2:50 
QuestionWhat is Kubernetes and its usage Pin
Mou_kol4-Feb-18 22:11
MemberMou_kol4-Feb-18 22:11 
AnswerRe: What is Kubernetes and its usage Pin
Richard MacCutchan4-Feb-18 23:04
mveRichard MacCutchan4-Feb-18 23:04 
GeneralRe: What is Kubernetes and its usage Pin
Mou_kol5-Feb-18 0:36
MemberMou_kol5-Feb-18 0:36 
GeneralRe: What is Kubernetes and its usage Pin
Richard MacCutchan5-Feb-18 0:42
mveRichard MacCutchan5-Feb-18 0:42 
Questionwhat is needed to create a payment getway? Pin
Ayrton Yagami2-Feb-18 6:34
MemberAyrton Yagami2-Feb-18 6:34 
AnswerRe: what is needed to create a payment getway? Pin
OriginalGriff2-Feb-18 6:35
mveOriginalGriff2-Feb-18 6:35 
QuestionASP.Net MVC: Need guide line for a specific routing Pin
Mou_kol1-Feb-18 23:04
MemberMou_kol1-Feb-18 23:04 
AnswerRe: ASP.Net MVC: Need guide line for a specific routing Pin
F-ES Sitecore2-Feb-18 1:33
mveF-ES Sitecore2-Feb-18 1:33 

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.