2012年6月13日

摘要: What’s the Big Idea?伟大的思想ASP.NET MVC is a web development framework from Microsoft that combines the effectiveness and tidiness of model-view-controller (MVC) architecture, the most up-to-date ideas and techniques from agile development, and the best parts of the existing ASP.NET platform. It’s a co 阅读全文
posted @ 2012-06-13 22:29 lucky.net 阅读(238) 评论(0) 推荐(0)
摘要: Part 1: Introducing ASP.NET MVC 3第1部分:ASP.NET MVC 3介绍 Chapter 1: What’s the Big Idea? 第1章:伟大的思想 Chapter 2: Getting Ready 第2章:准备工作 Chapter 3: Your First MVC Application 第3章:第一个MVC应用程序 3.1 Creating a New ASP.NET MVC Project【生成一个新的MVC项目】 3.2 Rendering Web Pages【渲染Web页面】 3.3 Creating a Si... 阅读全文
posted @ 2012-06-13 21:11 lucky.net 阅读(317) 评论(0) 推荐(0)
摘要: Controller Extensibility控制器可扩展性In this chapter, we are going to show you some of the advanced MVC features for working with controllers. We’ll start by exploring the parts of the request processing pipeline that lead to the execution of an action method and demonstrating the different ways you can t 阅读全文
posted @ 2012-06-13 21:07 lucky.net 阅读(248) 评论(0) 推荐(0)
摘要: Model Binding模型绑定Model binding is the process of creating.NETobjects using the data sent by the browser in an HTTP request. We have been relying on the model binding process each time we have defined an action method that takes a parameter—the parameter objects are created by model binding. In this 阅读全文
posted @ 2012-06-13 21:03 lucky.net 阅读(270) 评论(0) 推荐(0)
摘要: Model Templates模型模板TheHTMLhelpers that we looked at in theprevious chapter, such as Html.CheckBoxFor and Html.TextBoxFor, specify the HTML element required to edit a piece of data. The MVCFramework supports an alternativeapproach, known as templated view helpers, where we specify which model object 阅读全文
posted @ 2012-06-13 21:02 lucky.net 阅读(317) 评论(0) 推荐(0)
摘要: Views视图In Chapter 12, you saw how action methods can return ActionResult objects. As you learned, the mostcommonly used action result is ViewResult, which causes a view to be rendered and returned to the client.在第12章中,你看到了动作方法可以如何返回ActionResult对象。正如你所学到的那样,最常用的动作结果是ViewResult,它触发渲染一个视图并返回给客户端。You’ve 阅读全文
posted @ 2012-06-13 21:02 lucky.net 阅读(382) 评论(0) 推荐(0)
摘要: Filters过滤器Filtersinject extra logic into the request processing pipeline. They provide a simple and elegant way to implement cross-cutting concerns. This term refers to functionality that is used all over anapplication and doesn’t fit neatly into anyoneplace, so it would break the separation of conc 阅读全文
posted @ 2012-06-13 20:59 lucky.net 阅读(289) 评论(0) 推荐(0)
摘要: Producing Output 产生输出After a controller has finished processing a request,itusually needs to generate a response. When we created our bare-metal controller by implementing the IController interface directly, we needed to take responsibilityforeveryaspect of processing a request, including generating 阅读全文
posted @ 2012-06-13 20:58 lucky.net 阅读(196) 评论(0) 推荐(0)
摘要: Summary小结Controllers areoneof the key building blocks in theMVCdesignpattern. In this chapter, you have seen how to create “raw” controllers by implementing the IController interface and more convenient controllers by deriving from the Controller class. You saw the role that actions methods play in 阅读全文
posted @ 2012-06-13 20:58 lucky.net 阅读(133) 评论(0) 推荐(0)
摘要: Receiving Input接收输入Controllers frequentlyneed to access incoming data, such asquerystring values,form values, andparameters parsed from the incomingURLby the routing system. There are threemain ways to access that data:控制器经常需要访问输入数据,如查询字串值、表单值、以及通过路由系统从输入URL解析所得到的参数。有三个主要的办法来访问这些数据: Extract it f... 阅读全文
posted @ 2012-06-13 20:57 lucky.net 阅读(148) 评论(0) 推荐(0)
摘要: Controllers and Actions控制器与动作Every request thatcomes to your application is handled by a controller. The controller is free to handle the request any way it sees fit, as long as it doesn’t strayinto the areas of responsibility that belong to the model and view. This means that we don’t put business 阅读全文
posted @ 2012-06-13 20:55 lucky.net 阅读(131) 评论(0) 推荐(0)
摘要: Introducing the Controller控制器介绍You’ve seen the use of controllers in almost all of the chapters so far. Now it is time to take a step back and look behind the scenes. To begin, we need to create a projectforour examples.到目前为止几乎所有的章节中,你都已经在看到了控制器的使用。现在到了回过头来考查场景背后的东西的时候了。一开始,我们需要生成一个例子项目。Preparing th 阅读全文
posted @ 2012-06-13 20:55 lucky.net 阅读(179) 评论(0) 推荐(0)
摘要: URLs, Routing, and AreasURL、路由、与区域Before the introduction ofMVC,ASP.NETassumed that there was a direct relationship between requestedURLs and thefileson the server hard disk. The job of the server was toreceive the request from the browser and deliver the output from thecorresponding file, as follow 阅读全文
posted @ 2012-06-13 20:54 lucky.net 阅读(321) 评论(0) 推荐(0)

导航

Copyright luckynet 2013