Home > Net >  MVC conditions of how to set up this domain name http://localhost:20816/1111.111 access?
MVC conditions of how to set up this domain name http://localhost:20816/1111.111 access?

Time:04-07


If inscribe

Modify the routing
 
Routes. The MapRoute (
Name: "Default",
Url: {code},
Defaults: new {controller="Home", action="Index", code=UrlParameter. Optional}
);


This effect is to http://localhost:20816/? Code=1111.111

But now the parameters of the 1111.111 url took him as a file, how to set up now
  • Related