Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to the Asp.net MVC4 , I need to define rout for folder structure mention below,

Views/Home (Desired URL: /Home)
Views/Admin/CorePages/City (Desired URL: /Admin/CorePages/City)
for "Home" URL routing working perfect but for sub-folder such as "Admin/CorePages/City" it is not routing as per URL,How do I create route?

Note: My Controller are place in same manner in controller folder.
Posted
Comments
Shaun Blain 7-Jan-15 17:55pm    
Can you please clarify what you mean when you say your controllers are in the same manner in controller folder? Are you saying that you have your controllers in sub folders of the Controller folder?

1 solution

You should look into using Areas:

Areas in ASP.NET MVC 4[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900