Questions tagged [asp.net-mvc-areas]

An organizational concept present in ASP.NET MVC, that allows the developer to partition a large web application into smaller units.

An organizational concept present in ASP.NET MVC, that allows the developer to partition a large web application into smaller, distinct units. Areas might be used to, for instance, divide an application into inventory, review, storefront, and administration modules.

More information

575 questions
2
votes
1 answer

MVC Area Aware Themes

I'm new to MVC but am working hard to find my way through it. I'm currently at the point where I know enough to be dangerous, but not quite enough to actually do anything useful. I'm building a site which I'd like to be very flexibly "skinable". It…
Damien Sawyer
  • 5,323
  • 3
  • 44
  • 56
2
votes
1 answer

How to use areas with controllers from a different assembly?

I'm starting a new ASP.NET MVC project, and I decided to put my controllers in a different assembly. Evertyhing works fine, but I have hit a problem: I created a new area in my MVC Project, called Administration. I have an AdminController Class in…
2
votes
1 answer

MVC Areas and HTML Slug

I am trying to shorten my URLs on my MVC app (if this is even possible). I use areas on my web app. Currently I got URL slugs working, this seite helped a lot: http://www.itorian.com/2016/12/slug-url-in-mvc.html Here is part of my working area…
dave317
  • 754
  • 2
  • 12
  • 30
2
votes
1 answer

Fallback route for MVC Areas

Using asp.net core MVC application here. I have my areas defined and routing works as expected. One thing i would like to do, is have a fallback route in case the area does not exist. I have the following structure: APP -- Areas -- SharedArea …
2
votes
1 answer

ASP.NET MVC - Controller names in nested applications

I have an MVC web app, and a nested admin application with areas with the same name: /localhost/videos /localhost/admin/videos These are separate projects in the VS solution. The admin project is deployed into a folder off of the root app Both…
3Dave
  • 28,657
  • 18
  • 88
  • 151
2
votes
0 answers

Change View layout in MVC Pluggable pattern dynamically

Some explanation about scenario but please be patient to end!!! I have Implemented a pluggable MVC application which can register plugins which exist in Areas folder of main Project. each plugin have some views and controller I want to set layout…
Aria
  • 3,724
  • 1
  • 20
  • 51
2
votes
1 answer

Is Areas for ASP.NET Core the same as Portable Areas?

I've seen references dating back 3+ years for Portable Areas in ASP.NET MVC, but then I ran across "Areas" for ASP.NET Core. Are these the same thing? Side question: Is this something that is better solved with DI if you want to create an…
johnny
  • 19,272
  • 52
  • 157
  • 259
2
votes
1 answer

MVC Areas - Controller does not return view

I have some problems using Areas in my MVC project. I'm able to access my controller, which is located under the area, but when it returns to view (with model), I get an error: The view 'Index' or its master was not found or no view engine …
punatiainen
  • 147
  • 1
  • 9
2
votes
3 answers

Asp.Net MVC Ninject and Areas

I have a site that uses Ninject for dependency injection and I have Routing defined within a Bootstrapper class like so: public void RegisterRoutes() { Routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); …
Nicholas Murray
  • 13,305
  • 14
  • 65
  • 84
2
votes
2 answers

ASPNET MVC: ow can I make a page located in a given area (as opposed to the root structure) as default?

How and where do I configure my application so that, when it launches, the action (thus the page to be displayed) be, not in the root structure, but rather in a given area of my choice? Let's say, Action = "IndexOfArticles", Controller =…
Richard77
  • 20,343
  • 46
  • 150
  • 252
2
votes
0 answers

Change default Visual Studio behavior for MVC 2 project

I've created an MVC 2 project with nested areas, such as: Areas -->A -->C --> Controllers --> Models --> Views -->D --> Controllers --> Models --> Views -->Controllers -->Models -->Views -->B …
newguy
  • 101
  • 1
2
votes
1 answer

Subdomain routing on MVC5 with Areas

I am working on a MVC5 project with Areas. My plan is to publish this one codebase into 3 different IIS web servers. I thought about using the subdomain to route users to the designated application. Server 1 - App1.myweb.com Server 2 -…
2
votes
1 answer

Default landing page for an area independent of a default controller?

I have an MVC5 website with a few areas in it. Each area has its own set of controllers and obviously every controller has a default Index.cshtml as landing page. So far so good. But how do I go about implementing a landing page for an Area? I don't…
Lord of Scripts
  • 3,579
  • 5
  • 41
  • 62
2
votes
2 answers

How do I use EditorTemplates from an AREA outside the current in ASP.NET MVC

Consider a project with 2 Areas. /Areas/Blog /Areas/Dashboard Now say that my Blog area has an editor for the type SpecialBlog. /Areas/Blog/Views/Blog/EditorTemplates/SpecialBlog.ascx What if a view that is part of my Dashboard Area would like to…
Justin
  • 10,667
  • 15
  • 58
  • 79
2
votes
2 answers

About organisation of an asp mvc application

I'm starting a new web application that will be made of multiple parts or modules. My client want to be able to redistribute the application with a subset of modules to some other clients. I read about Areas in mvc2 which seems to be what i'm…
mateo
  • 529
  • 2
  • 6
  • 11