Why MVC (Model View Controller) is loosely coupled?
In order to answer this question, first let’s understand what’s the difference between loosely coupling and tightly coupling is.
Look at the following pic.
When we talk about human body, body parts are tightly coupled to each other. We cannot simply replace hand with some other hand or a leg with some other leg. This is called tightly coupling.
When we talk about computer most of the parts are loosely coupled. Take the RAM out put a new one, same with display, keypad etc. This is called loosely coupling.
In Web Forms User interaction logic is handled inside CodeBehind where as in Asp.net MVC it’s handled inside Controller. Now if we compare Web form Codebehind with MVC Controller biggest difference is, CodeBehind is tightly coupled with view where as controller wont tightly connected to any view.
Single controller can work with more than one view and similarly one view may contain references for more than one controller in form or anchor tag.
For technical trainings on various topics like WCF (Windows Communication Foundation), MVC (Model View Controller), Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact SukeshMarla@Gmail.com or visit www.sukesh-marla.com
See the following MVC (Model View Controller) video on viewdata, viewbag, tempdata & session:-
Click and see here for more step by step training in ASP.NET MVC