When I try sample application which is made as defa开发者_如何学Cult with asp.net mvc 3.0, the home and about links just work fine. But whenever I try to add custom route data in global.asax like
controller/action/id=urlhelper.optional,param=urlhelper.optional and run the project, all the links' href just vanishes.
ie. <a href="">Home</a>
like markup gets generated. Please help.
Thanks,
Gaurav
This is a known bug in MVC 3. Here is a blog post: http://haacked.com/archive/2011/02/20/routing-regression-with-two-consecutive-optional-url-parameters.aspx
精彩评论