as said earlier, the Areas function is what you are looking for. If you use vs2010, then although you have MVC2, you do not have tools for creating areas - they are only available in vs 2008, when you install MVC2 rc
for this to happen, follow the instructions at the following link: http://msdn.microsoft.com/en-us/library/ee671793%28VS.100%29.aspx since you can see that the menu options are missing, therefore:
- download the sample project from there.
- build the directory structure in your solution according to an example
- change AreaRegistration.cs to match the name of your area
- add AreaRegistration.RegisterAllAreas (); in the RegisterRoutes function on global.asax, immediately after IgnoreRoute
NOTE: shuold namespaces contain .Areas. for more explanations, a stackoverflow search for asp-net-mvc-2-beta-single-project-area-registration-getting-http-404 (since this is the first time I post a response - SO doesn't let me add more then 1 link, go fugure ..)
Hope this helps
Avi pinto
source share