Asp.net mvc 3 MVC3路由:匹配任何字符串
简单问题: 如何匹配MVC3路由系统中的字符串 例如:Asp.net mvc 3 MVC3路由:匹配任何字符串,asp.net-mvc-3,routing,url-routing,string-matching,Asp.net Mvc 3,Routing,Url Routing,String Matching,简单问题: 如何匹配MVC3路由系统中的字符串 例如: {sub}.domain.com/{contoller}/{action}/{id} sub = [Match any string here] 看来你的问题已经解决了 基本上,要访问{subdomain}.domain.com,普通的路由处理程序不会在那里查找,但是您可以创建自己的自定义路由类,该类会查找,并在Global.asax应用程序_Start()中注册它
{sub}.domain.com/{contoller}/{action}/{id}
sub = [Match any string here]
看来你的问题已经解决了 基本上,要访问{subdomain}.domain.com,普通的路由处理程序不会在那里查找,但是您可以创建自己的自定义路由类,该类会查找,并在Global.asax应用程序_Start()中注册它