What is the use of a controller in an MVC applicatio ?

 Posted by Bharathi Cherukuri on 8/27/2012 | Category: ASP.NET MVC Interview questions | Views: 5025 | Points: 40
Answer:

A controller will decide what to do and what to display in the view. It works as follows:

i) A request will be received by the controller
ii) Basing on the request parameters, it will decide the requested activities
iii) Basing on the request parameters, it will delegates the tasks to be performed
iv) Then it will delegate the next view to be shown


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response