0
简单问题:MVC3路由:匹配任何字符串
如何匹配MVC3路由系统中的字符串?
例子:
{sub}.domain.com/{contoller}/{action}/{id}
sub = [Match any string here]
简单问题:MVC3路由:匹配任何字符串
如何匹配MVC3路由系统中的字符串?
例子:
{sub}.domain.com/{contoller}/{action}/{id}
sub = [Match any string here]
看起来像你的问题已经answered here。
基本上,要到{子域} .domain.com,正常的路由处理程序不会在那里,但你可以创建自己的自定义路由类,并将其注册到你的Global.asax Application_Start( )。