1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to register/use MVC Areas with 5.x

How to register/use MVC Areas with 5.x

1 posts, 0 answered
  1. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    28 Oct 2012
    Link to this post
    How do you register an MVC 'area' with Sitefinity 5.1+?

    This useful blog post gets you part way there, but since the area is not registered, it passes in a full path to the view, rather than simply return View();

    example:
       return View("../../Areas/Demo/Views/Demo/Index");

    http://blog.falafel.com/Blogs/basem-emara/2012/07/18/mvc-comes-to-sitefinity-5.1

    Note that my project does not include a global.asax by default. Where are the MVC routes located by default in Sitefinity 5.1+? Do I need to add a global.asax?

    Suggestions?
1 posts, 0 answered