Introduction to ASP.NET's Model View Controller (MVC) Design Pattern

I don't know what it is last year, but I find myself bumping into design patterns every which way I turn. Here I am writing about an explicit design pattern called MVC (for Model-View-Controller).  

The MVC design pattern is widely used in applications that need to maintain multiple views of the same data sets. The fundamental principle at work here is functional separation. Models maintain the actual data; views provide logical windows into that data and control what users can see and interact with; and controllers handle events that might affect either a model or a particular view.

This structure permits multiple views and multiple controllers to interface with a single model, and it permits new views and controllers to be introduced at will without imposing any changes to model designs. As a paragon of uncoupled designs, this one is a real peach! (For more information and some nice diagrams, check out the description of MVC at enode.com).

Given this background, Microsoft's MVC offering may begin to earn its status as a "cool tool" for ASP.NET. It provides scaffolding and support building MVC applications using the ASP.NET framework that provides an interesting and (to many developers) appealing alternative to ASP.NET Web Forms. This tool affords numerous benefits, including:

  • Clear separation of tasks and data views
  • Support for test-driven development approaches
  • Fine-grained control over both HTML and JavaScript code elements
  • User-intelligible URLs (Microsoft calls them "intuitive," but I think they're pushing their luck)

The ASP.NET MVC framework is currently at the release candidate stage, which means it's still in what can only be called a "late beta" mode. Nevertheless, this capability is reasonably mature and surprisingly capable. Check out Microsoft's ASP.NET MVC home page, where you'll find tutorials, videos, a design gallery and some interesting sample applications, as well as the downloads you'll need to start putting this interesting and powerful design pattern to work.

      Please down the mvc framework from http://aspnet.codeplex.com/

 

      Enjoy!

转载于:https://www.cnblogs.com/gybsoft/archive/2010/03/30/1700642.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值