开发者

How to route URLs like /controller/action-name to controller/action_name in ASP.NET MVC

I want my URLs use '-' but the C# method 开发者_JAVA技巧name cannot contains that character. How do I make this route?


You would need to define a new route handler which handles the hyphens before the controller and action elements are mapped to class and methods. Check out this StackOverflow question

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜