ASP.NET MVC Architecture

ASP.NET MVC (Model View Controller) is architecture to design and develop ASP.NET web applications in a special approach than the traditional ASP.NET web development. Web applications has always major concern with search engines optimization ASP.NET MVC provide a great opportunities to design SEO friendly application.

How ASP.NET MVC Interaction with Web Browser

Like a regular ASP.NET application IIS web server interaction, MVC application also get requests and responds to the web browser in the same way.

The complete ASP.NET MVC architecture is based on Microsoft .NET Framework 4 and in addition uses LINQ to SQL Server.

'Model' in ASP.NET MVC Architecture

  • MVC model is basically a C#/ VB.NET class.
  • A model is accessible by both controller and view.
  • A model can be used to pass data from Controller to view.
  • A view can use model to display data in page.

'View' in ASP.NET MVC Architecture

  • View is an .ASPX page without having a code behind file.
  • All page specific HTML generation and formatting can be done inside view.
  • One can use Inline code (server tags ) to develop dynamic pages.
  • A request to view (ASPX page) can be made only from a controller's action method.

'Controller' in ASP.NET MVC Architecture

  • Controller is basically a C# or VB.NET class which inherits System.Mvc.Controller.
  • Controller is a heart of the entire MVC architecture.
  • Inside Controller's class action methods can be implemented which are responsible for responding to browser OR calling views.
  • Controller can access and use model class to pass data to views.
  • Controller uses ViewData to pass any data to view.
Copyright © 2018 Vatican Solutions Inc.