05 Handout 1 Flashcards
is based on a web page approach in designing web applications, while ASP .NET MVC emphasizes the separation of concerns
ASP .NET Web Forms
It emphasizes the separation of concerns
ASP .NET MVC
ASP .NET is divided into three (3) parts:
- Model
- View
- Controller
is the data that is being displayed
model
is how the data is being displayed to the user
view
is the intermediary that does the work of ensuring that the appropriate model is presented to the correct view
controller
Key different between ASP .NET Web Forms and MVC is that
it presents views, not pages to the client
Web Forms takes a file system approach to presenting content
true
MVC takes an approach whereby content is based on the “type of action”
true
The … pattern specifies where each type of logic should be located within your application
MVC
The …. belongs in the view
UI-specific logic
Input logic, or the logic that handles the request from the client, belongs in the …
controller
Business logic belongs in the … layer
model
example of model
public class Demo{
public string Property1 {get; set;}
public string Property2 {get; set;}
public string Property3 {get; set;}
}
example of view
@Html.DisplayFor(model => model.Property1)