How to create route

Posted by user276640 on Stack Overflow See other posts from Stack Overflow or by user276640
Published on 2010-03-18T22:52:01Z Indexed on 2010/03/18 23:01 UTC
Read the original article Hit count: 293

Filed under:
|

I want to use URL such as /Image/sample.png
I create route, but it does not work, it say "The resource cannot be found"
What is the problem? (action GetImage is in controller home)

routes.MapRoute("Image",
  "Image/{id}",
  new { controller = "Home", action = "GetImage", id = "" });

© Stack Overflow or respective owner

Related posts about routing

Related posts about asp.net-mvc