Home > Net >  Under MVC based routing rules how to acquire links with parameter files compose
Under MVC based routing rules how to acquire links with parameter files compose

Time:11-15

Such as access link is: http://localhost:/AAAA/B/C.TXT

Currently set to:
Routes. The MapRoute (
Name: "AAAA",
Url: "{controller}/{A} {B}, {C}",
Defaults: new {controller="AAAA", action="Index", id=UrlParameter. Optional}
);
So the result of the operation is not found C.T XT this file, also is to find this file directly, without setting into my way,
But if in the end of the path with a/, it into the following link
http://localhost:/AAAA/B/C.TXT/
So you can into my setting method, how to set up without a final/can normal visit, thank you.

CodePudding user response:

No action? Send the wrong place?

CodePudding user response:

I remember @ by_ love met,
Don't know how to solve the he finally,

CodePudding user response:

Thank you moderator, how could you find @ by_ love letter? Or how to direct messages he? thank you

CodePudding user response:

reference LWLIFE reply: 3/f
thank moderator, how can find @ by_ love letter? Or how to direct messages he? Thank you,

You to the c # small section, then in the moderator bar to see him,
See if you can direct messages directly

CodePudding user response:

 routes. MapRoute (
Name: "AAAA",
Url: "{controller}/{A} {B}, {C}",
Defaults: new {controller="AAAA", action="Index", A=UrlParameter. Optional, B=UrlParameter. Optional, C=UrlParameter. Optional}

);

Try this
  • Related