PDA

Click to See Complete Forum and Search --> : Getting Started with Asp.Net MVC


Krokonoster
May 18th, 2010, 04:11 AM
Asp.Net MVC is a web application framework from Microsoft. It was first published in November 2007 and has since seen more than 10 releases and 2 major versions. (At the time of writing the latest version was Asp.Net MVC 2).

Thanks to the high number of releases, Asp.Net MVC has received a lot feedback and is much more stable than some other new frameworks from Microsoft.

MVC stands for Model-View-Controller, a pattern that’s becoming increasingly popular with web development frameworks.

Asp.Net MVC is an alternative to Web Forms (though you can mix the two, for instance when you need to do a phased upgrade), which means you won’t be dealing with pages, user controls, postbacks or viewstate, let alone complex event life cycles.

Instead, you’ll be defining controllers, actions, and views. The underlying ASP.NET platform is the same, however, so things like HTTP handlers and HTTP modules still apply.

The main benefits of using Asp.Net MVC are:
• Full control over HTML
• Full control over URLs
• Separation of concerns
• Extensibility
• Testability

A very convincing article about why you should use Asp.Net MVC can be read here: I Spose I’ll Just Say It: You Should Learn MVC (http://blog.wekeroad.com/blog/i-spose-ill-just-say-it-you-should-learn-mvc/)

MVC stands for Model – View – Controller and can be seen as follows:
• Model : The “thing” that your software is built around. If you were building a product catalog, your models might be product and category.
• View : A visual representation of a model. It’s usually the resulting HTML that the framework renders to the browser, such as the HTML representing a product listing, or the details of a product.
• Controller - The controller processes input, acts upon the model, and decides what to do—render a view, redirect somewhere else, and so on. The controller might retrieve a list of products from your repository layer and send them to a view.

You can start learning about Asp.Net MVC in the Asp.Net MVC section on the Microsoft Asp.Net site: http://www.asp.net/mvc

Here you will find tons of getting started tutorials, walk troughs and videos. Keep in mind that due to the rapid evolution and the MVC team’s “Release Early and Often” strategy, some of these resources might be a bit outdated.

Asp.Net MVC in Action (http://www.manning.com/palermo/) and Pro Asp.Net MVC (http://apress.com/book/view/9781430210078) have proven to be very good books to get you on a productive level in no time.

Thanks to Asp.Net MVC being a community driven project, there are some very good blogs that you can (and should) follow. Subscribing to these should keep you up to date:

http://haacked.com/
http://weblogs.asp.net/scottgu/
http://blog.maartenballiauw.be/
http://weblogs.asp.net/rashid/
http://stephenwalther.com
http://dotnetshoutout.com/Tags/ASPNETMVC


There are several very good videos from Mix 2010 you definitely would like to look at. See the following at http://live.visitmix.com/Videos

Building a Next-Generation Web Application with Microsoft ASP.NET MVC 2 and jQuery (http://live.visitmix.com/MIX10/Sessions/EX10)
What's New in Microsoft ASP.NET MVC 2 (http://live.visitmix.com/MIX10/Sessions/FT04)
The HaaHa Show: Microsoft ASP.NET MVC Security with Haack and Hanselman (http://live.visitmix.com/MIX10/Sessions/FT05)


There are a few community projects available of which the source code demonstrate how Asp.Net MVC normally are used in real production applications.

S#arp Architecture (http://sharparchitecture.net/)
CodeCampServer (http://codecampserver.codeplex.com/)
Kigg (http://kigg.codeplex.com/)



I noticed those that learned Asp.Net MVC from MVC in Action always been a step ahead in the game.
MVC 2 in Action is coming up, and while they are wrapping up the book you can get the manuscripts and chapter's source code on github.


Please feel free to send more additional links and resources you think would be useful for someone trying to nut out Asp.Net MVC.

gep13
Jun 28th, 2010, 10:50 AM
Hey,

I have just found a couple links regarding ASP.Net that I though might be quite useful, so thought I would post them here:

http://www.asp.net/mvc/samples/mvc-music-store

http://blog.maartenballiauw.be/post/2010/06/16/ASPNET-MVC-MvcSiteMapProvider-20-is-out!.aspx

Gary

gep13
Jul 7th, 2010, 07:04 AM
A very interesting article:

Asp.Net MVC: My Personal View Rules (http://elegantcode.com/2010/07/05/asp-net-mvc-my-personal-view-rules/)

Gary

DeanMc
Jul 20th, 2010, 02:57 PM
Good article,

gep13
Jul 20th, 2010, 03:00 PM
Good article,

Oh, yeah, I guess I should have pointed you at this forum from your other thread :)

chrisbredford123
Aug 23rd, 2010, 07:39 AM
thanks a lot cheers

tr333
May 3rd, 2011, 06:50 PM
I just found a great site for explaining MVC. It's a great help for anyone transitioning from WebForms to MVC. It appears to have been written for MVC1, but the basic MVC concepts are the same for MVC1,2,3.

How ASP.NET MVC Works (http://www.howmvcworks.net/)

Krokonoster
May 7th, 2011, 07:03 PM
If you are serious about getting asp.net mvc under the belt, I can honestly suggest the training video's on Pluralsight.
Joined a few months ago and the best $29 (PM) I ever spent on training.
Even better, become a WebsiteSpark member and get 3 months PluralSight for free.
Good stuff, seriously.

gep13
May 9th, 2011, 01:39 AM
I am actually watching that series of videos just now.

I was fortunate enough to get a year's subscription to Pluralsight for free :)

Gary

tr333
May 12th, 2011, 10:59 PM
Securing your ASP.NET MVC 3 Application (http://blogs.msdn.com/b/rickandy/archive/2011/05/02/securing-your-asp-net-mvc-3-application.aspx)

gep13
May 17th, 2011, 12:48 AM
Thats a nice article, bookmarked!

Gary