Professional Documents
Culture Documents
Net MVC is the framework provided by Microsoft that lets you develop the applications that follows the principles of Model-View-Controller (MVC) design pattern. The .Net programmers new to MVC thinks that it is similar to WebForms Model (Normal ASP.Net), but it is far different from the WebForms programming. This article will tell you how to quick learn the basics of MVC along with some frequently asked interview questions and answers on ASP.Net MVC
The syntax for server side code is simplified The length of code is drastically reduced Razor syntax is easy to learn and reduces the complexity
Create a simple class and extend it from Controller class. The bare minimum requirement for a class to become a controller is to inherit it from ControllerBase is the class that is required to inherit to create the controller but Controller class inherits from ControllerBase.
10. What is the default Form method (i.e. GET, POST) for an action method
GET. To change this you can add an action level attribute e.g [HttpPost]