This translator: the first control. NET
Learn how to use asp.net mvc, LINQ to SQL and ASP.net Ajax to build a Digg-type application.
Objective
For a while, I've been trying to learn the new ASP.net MVC framework, and I've seen a lot of discussions on advanced topics such as IOC container/dependency Injection, View Engine,controller factory, and so on. But I can't find a simple article to show the energy of the ASP.net MVC framework. Of course, knowing those advanced topics does have some extra benefits, but they don't help you with your asp.net MVC framework development. In this article by Dotnetslackers team, I'll develop a simple, digg/dotnetkicks-type program with asp.net mvc. You can view this program in the following address:
"Program Demo"
Note: This article and code are all based on ASP.net 3.5 Extensions's first preview version. Whenever a new preview comes out, we will update accordingly.
Looks like the mix08 version will come out soon.
Get ready
ScottGu a set of descriptions of the ASP.net MVC framework:
Introduction to the ASP.net MVC framework
asp.net MVC tutorial (Part One)
asp.net MVC Tutorial (Part Two: URL path selection)
asp.net MVC Tutorial (Part III: Uploading ViewData from controller to view)
asp.net MVC tutorial (Part IV: Working with Form editing and submitting scenarios)
All the above links for the blog Hall ScottGu blog Chinese version of the link, and the original text added to the fourth part of the link.
Scott Hanselman's a cool video tutorial screencast.
Overview
MVC (Pattern-View-Controller) is a popular pattern for developing UI-centric applications. He was built on a simple concept: dividing the entire application into three logical modules
Model, Mode
View, views
Controller. Controller
The ASP.net MVC framework is a set of implementations of the MVC pattern, and the ability to develop Web applications is built into it. Let's take a quick look at these three modules.
Figure I: MVC Framework