Friday, 21 October 2016

Introduction

M V C - Yes there are 3 SoC's. Model View Controller

In a typical website, the pages/resources are served directly from the servers disk. There can be filters on what to sho, what not to show. There can be dynamic rendering/compiling engines like php, asp.net, perl etc., 

MVC is different in the sense, how the content is rendered. Here the links doesn't point to direct files (.html, .css, .aspx, .php etc). Rather they are search-engine friendly URL's which looks like below.


www.productstore.com/electrical/home/television

www.productstore.com/electronics/computers/laptops

The URL gives some meaning to the reader. And also to the search engine bots/spiders. This way of URL handling is made possible via routing technique, using some http handlers/modules. MVC uses MVCRouteHandler/MVCHandler for handling this.


A route here means the path, the format of the path which are stored in a table collection, which in turn used by MVCRouteHandler for identifying the controller and action to execute. Refer to the image below which tells, how the MVC pipeline execution occurs.


Fig 1.1 - Source: www.asp.net


No comments:

Post a Comment