asp.net mvc - how will you do this in MVC custom route? -


www.yoursite.com/image/

I need to know here that the Controller Action, and Global .sx routes

: The character is not valid The path segment of the URL, Then you have to either put it in sign language, or delete it altogether after that, you can specify that the value of the route should be assigned to the balance of the URL.

  routes.MapRoute ("Image", "image / {* url}", new {controller = "image", action = "index"}); For the  

url http://www.yoursite.com/image/images.google.com.ph/images/nav_logo7.png , the above paths < ImageController.Index () will execute with a url argument with code> "images.google.com.ph/images/nav_logo7.png" .

Also note that a URL authorization can be composed of a domain name and a port number, which is also encoding : (www.google.com:80) Will happen.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -