1
我在单个页面的Web应用程序中遇到了一种情况。我使用客户端上的地址信息来确定要加载的数据。我希望能够像下面的所有url直接指向HomeController上的Index操作方法。带有多个可选参数的ASP.NET MVC路由
http://mysite.com/Home/Index/Value/23/Another/34
http://mysite.com/Home/Index/Value/23/Another/34/StillAnother/45
在该控制器的方法,我想的参数,如清单:
{"Value", "23", "Another", "34"}
{"Value", "23", "Another", "34", "StillAnother", "45"}
这可能吗?
可能重复http://stackoverflow.com/questions/7515644/infinite-url-parameters-for-asp-net- mvc-route) – Zeph