开发者

ASP.NET MVC question

开发者 https://www.devze.com 2022-12-31 00:22 出处:网络
I want the following structure in my ASP.NET MVC solution; Controllers/HomeController.cs Contr开发者_如何学编程ollers/Administration/AdministrationController.cs

I want the following structure in my ASP.NET MVC solution;

Controllers/HomeController.cs

Contr开发者_如何学编程ollers/Administration/AdministrationController.cs

Controllers/Administration/UsersController.cs

Views/Home/Index.aspx

Views/Administration/Index.aspx

Views/Administration/Users/Index.aspx

Views/Administration/Users/AddUser.aspx

etc.

How can I make it work so I get http://localhost/Administration/Users ? Do I need a route for this, or create a new Administration area?

Thanks.


Create an "Administration" area:

http://www.asp.net/learn/whitepapers/what-is-new-in-aspnet-mvc#_TOC3_2

0

精彩评论

暂无评论...
验证码 换一张
取 消