Click here to Skip to main content
15,920,053 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Progress with MVC Pin
Marc Clifton13-Apr-15 4:09
mvaMarc Clifton13-Apr-15 4:09 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:21
User 1013254613-Apr-15 4:21 
GeneralRe: Progress with MVC Pin
Marc Clifton13-Apr-15 4:31
mvaMarc Clifton13-Apr-15 4:31 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:42
User 1013254613-Apr-15 4:42 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:56
professionalBergholt Stuttley Johnson13-Apr-15 4:56 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:05
User 1013254613-Apr-15 5:05 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:36
professionalBergholt Stuttley Johnson13-Apr-15 5:36 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:46
User 1013254613-Apr-15 5:46 
Bergholt Stuttley Johnson wrote:
why would you have different controllers for each action? unless each of the above action does exactly the same thing, in which case have one controller for all the similar actions

You can group actions together for a view, but it is still one view controller for each view, isn't it?
Bergholt Stuttley Johnson wrote:
that you are not using its full capacity does not make it invalid

I think that perhaps you're missing my point? Let me give a clearer example:

I have an application with a header, nav bar and a footer. I use a MVC layout file to bring the basic structure of my application to life. So far so good.. So I create a number of pages which look up data and present it to the user. The need for the controller code that I write is clear here - I'm performing some logic.

However, I have a set of pages - let's call them "help" pages, that do no database lookups and have no real logic. I still want to keep my header, nav bar and footer (with content appropriate to the logged in user, perhaps)..

In standard ASP.NET MVC I still have to add a view controller for each help page (view). I need to write a C# action. Whenever I add a new page (view) or rename pages (views) I need to update my C# code and recompile and publish the entire application.

How does that make sense? It's not a case of under-using the framework, it's day-to-day development. Some pages (views) need their own logic, others don't - the point is that with ASP.NET MVC, I have to write logic for every page (view) whether it's needed or not.
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.


modified 31-Aug-21 21:01pm.

GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson14-Apr-15 21:28
professionalBergholt Stuttley Johnson14-Apr-15 21:28 
GeneralRe: Progress with MVC Pin
User 1013254614-Apr-15 22:30
User 1013254614-Apr-15 22:30 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson14-Apr-15 22:47
professionalBergholt Stuttley Johnson14-Apr-15 22:47 
GeneralRe: Progress with MVC Pin
User 1013254614-Apr-15 23:05
User 1013254614-Apr-15 23:05 
GeneralRe: Progress with MVC Pin
Kevin Marois13-Apr-15 4:52
professionalKevin Marois13-Apr-15 4:52 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:58
User 1013254613-Apr-15 4:58 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 7:57
Vark11113-Apr-15 7:57 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:04
User 1013254613-Apr-15 8:04 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 8:06
Vark11113-Apr-15 8:06 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:14
User 1013254613-Apr-15 8:14 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 8:23
Vark11113-Apr-15 8:23 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:30
User 1013254613-Apr-15 8:30 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:02
professionalBergholt Stuttley Johnson13-Apr-15 5:02 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:16
professionalBergholt Stuttley Johnson13-Apr-15 4:16 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:22
User 1013254613-Apr-15 4:22 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:27
professionalBergholt Stuttley Johnson13-Apr-15 4:27 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:30
User 1013254613-Apr-15 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.