开发者

ASP.NET MVC question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜