Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
AreaRegistration.RegisterAllAreas();

this function does not call this class

namespace ArleATPImportWebApp.Areas.ImportNightflight
{
    public class ImportNightflightAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "ImportNightflight";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "ImportNightflight_default",
                "ImportNightflight/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
               ,namespaces: new[] { "ArleATPImportWebApp.Areas.ImportNightflight.Controllers" }
            );
        }
    }
}


in _layout.cshtml i write that 
@Html.ActionLink("Nightflight - Upload and import rows", "Upload", new { controller = "ImportedDocs", area = "ImportNightflight" },null)
Posted

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