The Controllers contains the controller classes responsible for handling user input and responses. MVC requires the name of all controllers to end with "Controller". The ASP.NET MVC framework maps URLs to classes that are referred to as controllers. Controllers process incoming requests, handle user input and interactions, and execute appropriate application logic. A controller class typically calls a separate view component to generate the HTML markup for the request.

* Locating the appropriate action method to call and validating that it can be called.

* Getting the values to use as the action method's arguments.

* Handling all errors that might occur during the execution of the action method.

* Providing the default WebFormViewEngine class for rendering ASP.NET page types (views).

All controller classes must be named by using the "Controller" suffix. The following example shows the sample controller class, which is named HomeController. This controller class contains action methods that render view pages.

0 Comments1

Sorry, No more post.

Your Comment

Login To Comment


By posting your Comment, you agree to the privacy policy and terms of service.