1.

What are the three main components of an ASP.NET MVC application?

Answer»

In the below-given figure, you can see THREE main components of the MVC architecture in ASP.NET and interaction among them.

The 3 main components of an ASP.NET MVC application are model, VIEW, and controller.

  • Model: Model objects will implement the logic for the data domain of an application and has all the classes that handle data and business logic. Usually, model objects will retrieve and store the model state in the database.
  • Views: View is a component used for displaying the USER Interface(UI) of an application. Generally, this UI will be created using the model data.
  • Controllers: The controller is a component used for handling the user interaction, model-related work, and selecting a view for RENDERING to display the UI. In an MVC application, for displaying the INFORMATION the view will be responsible, for handling and responding to user input and interaction the controller will be responsible.


Discussion

No Comment Found