What is MVC (Model view controller)?

devquora
devquora

Posted On: Jul 04, 2024

 

    1 Answer Written

  •  devquora
    Answered by Anil Saini

    What is MVC in Asp.net?

    MVC stands for Model, View, and Controller.

    • Model - It is used to represent the shape of the data and business logic. It maintains the data of the application. Model objects are used to retrieve and store model state in the database.
    • View - It is the user interface. It is used to display the data using a model to the user. It also enables them to modify the data.
    • Controller - It handles the user request. It interacts with the view and in-turn raises the appropriate URL request. This URL request will be handled by the controller. The controller then renders the appropriate view with the model data as a response.

Related Questions

Please Login or Register to leave a response.

Related Questions

MVC Interview Questions

What is Razor in MVC?

Razor is a view engine introduced in MVC 3 that allows embedding server-based code into web pages using C# and VB.Net. As a general-purpose templating engine, Razor simplifies creating dynamic web con..

MVC Interview Questions

Explain attribute based routing in MVC?

Routing in MVC applications monitors requests and registers routes in the routing table during the Application_Start() event. ASP.NET MVC 5.0 introduced Attribute Routing, enabling developers to defin..

MVC Interview Questions

What is TempData in MVC?

TempData in MVC is a dictionary object used to store data for a single request, facilitating data transfer between action methods. It is especially useful for redirection scenarios and passing message..