Top "Model-view-controller" questions

Model–View–Controller (MVC) is an architectural pattern used in software engineering.

How should a model be structured in MVC?

I am just getting a grasp on the MVC framework and I often wonder how much code should go in …

php oop model-view-controller architecture model
How to display a list using ViewBag

Hi i need to show a list of data using viewbag.but i am not able to do it. Please …

asp.net-mvc asp.net-mvc-3 model-view-controller viewbag
How to pass parameters to a partial view in ASP.NET MVC?

Suppose that I have this partial view: Your name is <strong>@firstName @lastName</strong> which is …

asp.net-mvc asp.net-mvc-3 model-view-controller controller asp.net-mvc-partialview
What is difference between MVC, MVP & MVVM design pattern in terms of coding c#

If we search Google using the phrase "What is difference between MVC, MVP & MVVM design pattern" then we may …

c# design-patterns model-view-controller mvvm mvp
How to set a hidden value in Razor

I know that what I'm trying to do is bad idea, but I have specific constrains for now. I have …

asp.net-mvc-3 razor model-view-controller model setdefault
MVC [HttpPost/HttpGet] for Action

I am using MVC C#. Can somebody give an example on why one would use [HttpPost/HttpGet] for an Action. …

asp.net-mvc model-view-controller
DTO and DAO concepts and MVC

1) Why do we use DTO and DAO, and when should we use them. I am developing a GUI Java software …

java swing model-view-controller user-interface javabeans
Business logic in MVC

I have 2 questions: Q1. Where exactly does "business logic" lie in the MVC pattern? I am confused between Model and …

design-patterns model-view-controller business-logic business-rules
Vue JS mounted()

I am creating a game in VueJS, where, when the page loads, I want a method to fire, make an …

javascript vue.js model-view-controller vuejs2 reusability
Unable to set data attribute using jQuery Data() API

I've got the following field on an MVC view: @Html.TextBoxFor(model => model.Course.Title, new { data_helptext = "Old …

jquery model-view-controller attributes custom-data-attribute