We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Andi Gibson • 15 years ago

Thanks for linking to my blog post. Do you know why it is better practise to use the MapRoute() method, I wasn't aware of this but would be good to know a bit more info.

Cheers,

Andi
Zero7Web

Donnie Ray Jones • 15 years ago

I'm really not sure that it is better practice. I just noticed that MapRoute() was what the default MVC template used to registered routes. It could very well be that it's not the preferred method. Sorry I'm not more helpful =/

Timothy • 15 years ago

if I understand correctly, you can just decorate like...

[ActionName("edit-product")]
public ActionResult EditProduct( int id )
{
//...
}

Ladmilind • 14 years ago

I am trying same one but getting error: view not found. Actually it is searching view in root instead of views in Area. Can anyone pls help?

Donnie Ray Jones • 14 years ago

Did you define the "areaName" correctly in the route? E.g. "blog/{controller}/{action}/{id}" if your area name was "blog".

Todd Shelton • 12 years ago

Thank you! And exactly what I need it for, too--hyphenated route handling.
Todd Shelton (Cloudrocket)