Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 14, 2011 10:36 PM by mystere
Jul 14, 2011 08:23 AM|LINK
I'm new to MVC Framework. In order to get into MVC, i want to clarify some questions.
1) MVC is specific framework, which can be applicable for ONLY Web based (like ASP.Net, Jave based web app etc) applications? Is it correct?
2) If NO, is it possible to use the MVC concepts in Windows Client applications (like any windows app developed in any lang)?
Jul 14, 2011 08:27 AM|LINK
1. ASP.NET MVC is only for ASP.NET
Generic MVC can be applied for windows based too
Jul 14, 2011 08:35 AM|LINK
Thanks for ur answer. But why you said NO to 2nd question also?. that means Generic MVC is not applicable to Windows based app. am i correct?
Jul 14, 2011 08:47 AM|LINK
But why you said NO to 2nd question also?.
Sorry not being explicit. You can apply MVC also for Windows. PLease look at
and re-using for a DOS application
Jul 14, 2011 08:11 PM|LINK
if you mean the ASP.NET MVC framework follow the instructions ignatandrei provides to you.
If you mean the MVC pattern (the direction your second question goes to, I thought) have a look at the wikipedia entry for this pattern -
Jul 14, 2011 10:08 PM|LINK
1) ASP.NET MVC is a (Model-View-Controller design pattern) built on top of ASP.NET. It is exclusively for web apps.
2) That being said, MVC (Model-View-Controller) itself is not specific to web. It is a design-pattern for separating the concerns of:
Model: how your data is stored,
View: how your data is displayed,
Controller: how your user interacts with your model (via the view).
This is a very powerful pattern for managing complexity in large applications. Not only can it be used in a windows app or any other language, but it usually should be used too. (In my opinion)
Jul 14, 2011 10:36 PM|LINK
Model View Controller (MVC) is a more generic patten that goes back many many years. ASP.NET MVC is a specific implementation of MVC designed for web development under the .net framework.
Yes, you can develop windows applications using an MVC pattern, but not with ASP.NET MVC.
Windows forms (and to some extent WPF) makes a pure MVC architecture a bit difficult due to the code behind issue. Windows Forms is more suited to MVP (Model View Presenter) and WPF is more suited to MVVM (Model View ViewModel).