我是ASP.NET MVC框架的新手 我只是想知道如何配置我的情况。
我想在我的mvc应用程序中创建一个URL如下:
1)http://localhost/statistics/people/index
2)http://localhost/statistics/animal/index
3)http://localhost/information/people/index
4)http://localhost/information/animal/index
如果我将'statistics'和'information'配置为coltrollers,我可以在views文件夹下创建'people'文件夹吗?
我知道如果我使用mvc版本2框架的'area'功能,但我想知道可以使用mvc 1.0
提前致谢。
答案 0 :(得分:0)
看看这个。
更新
您可以有两种观点: - 意见 - Views1
让我们说你的第一个网址是localhost / Category / insert
对我来说,第二个网址可能是localhost / V1 / Category / insert
然后您可以使用ASP.NET来检查URL何时包含V1,路由到Views1 /...
希望这有帮助。