My url is being displayed something like this: http:\mydomain.com.br\Cars\Search\23
the Cars is my controller, Search is my action and 23 is route parameter. I am not happy with this url mainly because of the uppercase letters. I would like to change it to http:\mydomain.com.br\result_car_search\23. I want to change the url without changing the structures of my controllers/actions.
I've using this to generate the "ugly" url.
@Html.ActionLink("Volkswagem Gol", "Search", "Car", new { param = 93}, null)
I've tried to use
@Html.RouteLink("Fiat Palio", "result_car_search", new { param = 30}, null)
but for my surprise it generage a url pointing to the current url with the route parameter appended to the end.
my route is this:
routes.MapRoute("result_car_search", "{controller}/{action}/{param}", new { controller = "Car", action = "Search", param= UrlParameter.Optional });