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)?
Please clarify.
Thanks
Happy to Help!
Click "…Mark As Answer" if my reply helpful to you..
A2Z DotNet
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 -
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
Regards.
If my post solves your problem, please mark as answer.
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)
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).
francissvk
Participant
1010 Points
343 Posts
some questions
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)?
Please clarify.
Thanks
Click "…Mark As Answer" if my reply helpful to you..
A2Z DotNet
ignatandrei
All-Star
135194 Points
21682 Posts
Moderator
MVP
Re: some questions
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
2. NO
francissvk
Participant
1010 Points
343 Posts
Re: some questions
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?
Click "…Mark As Answer" if my reply helpful to you..
A2Z DotNet
ignatandrei
All-Star
135194 Points
21682 Posts
Moderator
MVP
Re: some questions
Jul 14, 2011 08:47 AM|LINK
Sorry not being explicit. You can apply MVC also for Windows. PLease look at
http://msprogrammer.serviciipeweb.ro/2010/03/29/asp-net-mvc-orm-and-viewmodels/
and re-using for a DOS application
http://msprogrammer.serviciipeweb.ro/2010/07/05/asp-net-mvc-and-dos-re-using-the-viewmodels/
Horizon_Net
Star
8277 Points
1435 Posts
Re: some questions
Jul 14, 2011 08:11 PM|LINK
Hi,
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 - http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
If my post solves your problem, please mark as answer.
a_shimoon
Member
258 Points
68 Posts
Re: some questions
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)
mystere
Member
395 Points
90 Posts
Re: some questions
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).