I develop massive web application with a lot of views. It is messy to keep desktop/mobile views in same folder. Is it possible to group mobile views (name.Mobile.cshtml) into explicit subfolder and say to DisplayModeProvider to find views there? For example:
You can use Areas (an ASP.NET MVC term, sometimes referred to as ‘Module’ in other MVC frameworks).
In short, an Area will let you have controllers & views specific to the ‘Area’, like so:
Regular structure (default area):
‘Admin’ area (for example):
As of routing, you’ll usually have to configure it manually by ‘registering’ areas in Global.asax
Thank you for your reply. I asked the same question on stackoverflow.com, then i found the solution and wrote message there. Here is the link: