A Briefing to MVC

MVC 

Its is a framework for better web application development . Before this used the Web Forms for the purpose of web application creation. Web application creates has a long runny heavy process in which the controller is connected and maintained by server. The details of every small control is connected and shared with server at every point. Thus MVC was introduced to get the a light weight web application. its uses the HTML controls to make the page .
In web forms the controls are converted to the Html tags at run time but in MVC the the Html is created at the design time thus making it faster than any other web forms based application . 

MVC has some positive points over the Web Forms  
  1. It provides better structure to web applications
  2. As controller created in MVC are class of  .Net thus its is easy to create unit cases and the automatic manual test cases.
  3. it can provide a better layored architecture to the user to work parallel on same application by multiple user.
  4. Lesser code is created as the back end code is done using the .Net classes and references. 
  5. Easy learning curve for the growing project that scale up to years. 


High end view of MVC Execution
  • ·         Receiving Request for the application
  • ·         Routing of the URL according to internal routing
  • ·         Creating MVC request handlers
  • ·         Creating controller to be called by the request
  • ·         Executing the Controller
  • ·         Invoking the required method
  • ·         Result is send back as response


Session Management in MVC
  • ·         TempData -  is used to send data from one controller to another controller.
  • ·         ViewData  -  Used to send data from controller to the view respective to the controller.
  • ·         ViewBag    -  Dynamic wrapper around a ViewData is called a ViewBag
    Flow of request in MVC








Comments

Popular posts from this blog

How to use lamda expression for updating using LINQ

using session for login and logout in asp.net

How to post data in MVC using form collection for Beginners.