开发者

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

开发者 https://www.devze.com 2023-02-24 19:03 出处:网络
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 th

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

精彩评论

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

关注公众号