wildcards in asp.net mvc routes
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i'm using asp.net mvc with vs2008 and IIS7. What i want to accomplish is that all requests that START WITH 'summer' are routed to the same controller. 'till now i've built tons of routes, but they were all for one path (with parameters offcourse) but this one must route: www.mysite.com/summercity www.mysite.com/summermadness www.mysite.com/summer www.mysite.com/summerweather to the same controller. the only solution i've come up with is 'summer*', but that didn't work :) Michel 回答1: You can use: /Summer{*Data} 文章来源: wildcards in asp.net mvc