1
Vote

How do I use it in MVC 2 Areas?

description

I try to use it in my mvc 2 project,it was very userfull.
But I try add some areas views in my project,it was not work again,how do I use it in MVC 2 Areas?
thanks!

comments

linqingfeng wrote Mar 24, 2010 at 10:26 AM

It was use in areas,just only register routes in method registerarea.
like this,
public override void RegisterArea(AreaRegistrationContext context)
{
ExternalResourceController.RegisterRoutes(context.Routes);

context.MapRoute(
    "FileManager_default",
    "FileManager/{controller}/{action}/{id}",
    new { controller = "Manager", action = "Index", id = "" }
);
}

thanks ^_^,this very good component!

wrote Feb 2, 2013 at 4:20 AM