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
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
Post a Comment