Skip to main content

Introduction To Model-View-Controller (MVC)

Hello Geeks .. Today's Post is A little try to introduce the Model View Controller (MVC) . In this post i'm going to explain MVC in general and a Brief introduction to ASP.NET MVC ,So let's get started ...

Historical Point : 

Model-View-Controller has been an important architectural pattern in computer science. It's Original Name was  : Thing-Model-View-Editor Introduction in 1979 and It's been used in lots of frameworks since then.
You Can find MVC in Java and C++ , On Mac and on Windows and other frameworks .


Defining Model-View-Controller : 

Well .. MVC is an architectural pattern used to separate an application into three main aspects as you can expect it from the title of the theory ..
  • The Model : The Set of Classes that describes the data you're working with as well as the business rules for how the data can be changed and manipulated.. 
  • The View :  It is the view that user interact with , In Other Words it's called The User Interface.
  • The Controller : A Set of Classes that handles communication from the user,over all application flow,and application-specific logic.

Model-View-Controller in ASP.NET :

ASP.NET MVC take the idea of n-tier.. The Idea of ASP.NET Model-View-Controller Have the same logic with the standard MVC where :
  • Markup Goes for the View
  • Business Logic goes in the Controller
  • Database connection code goes in the Model.
Sounds like n-tier to you too ? The Differences are just(mostly) theoretical.
MVC is a very big topic that i just can't cover here in any detail .. So I will be writing more about in next posts .. Also you can Read more about it in Professional ASP.NET by Wrox Press .. It's Cool and Amazing you can just order it from Amazon Online Shop . 

Related Posts : 

Best Wishes Everybody :)

Popular posts from this blog

How To Create A Change Password Form in a C# Application

Hello Geeks .. This little post is a free sample C# Windows Form that can be used to change password in a SQL Database .

C# Full Pharmacy Project With Source code

Hello Geeks .. This post is one of our completely Free Projects .. It is a Pharmacy Project that can perform a lot of operations you can also find the (.dll) files for the working Barcode Reader Machines in your country and add it to the project .


How To Create C# Chat Application

Hello Geeks .. Today I gonna show you How to make a Chat Application Using Microsoft C#.NET 5.0 .
You Can Use Older Versions Since there is nothing special in the application that only belongs to C# 5.0 .

This Application Was Created To Allow Two Computers To "Chat" Using IP Addresses Also you Can Open two Clients On The Same Computer and Use Same IP Address But Different Port.. It is simple and Easy to Use And Develop .. I also Uploaded The Full Working Project With It's Source Code On MediaFire.. You Will Find The Link At The End Of the Post :)