ASP.NET MVC2 第八章Ⅱ
摘要:§8.3 Generating Outgoing URLs从前, 如果你要从detail.aspx页面中查找一个id参数, 你会这么写myHyperLink.NavigateUrl = "~/Details.aspx?id=" + itemID;但是, 现在我们只需要这样写:<a href="/Products/Details/<%: ViewData["ItemID"] %...
阅读全文
ASP.NET MVC2 第八章Ⅰ
摘要:§8 URLs and RoutingBefore ASP.NET MVC, the core assumption of routing in ASP.NET (just like in many other web application platforms) was that URLs correspond directly to files on the server&rsquo...
阅读全文
ASP.NET MVC2 第六章Ⅰ
摘要:§6 SportsStore: Administration and Final Enhancements 作为SportsStore的最后一张, 你的主要任务就是让管理员可以更新他们产品. 在这章中, 你将会学到一下几点: 如何让让用户编辑一组数据(创建, 读取, 更新, 删除), 验证每次提交 如何使用Form 验证与过滤来保证控制器和action方法的安全性, 必要的时候显示登录提示 ...
阅读全文
ASP.NET MVC2 第五章Ⅲ
摘要:§5.3 Submitting Orders In this product development cycle, SportsStore will just send details of completed orders to the site administrator by e-mail. It need not store the order data in your database....
阅读全文
ASP.NET MVC2 第五章Ⅱ
摘要:§5.2 Building the Shopping Cart In this section, you’ll do the following: Expand your domain model to introduce the notion of a Cart, and work with a second controller class, CartController. Create ...
阅读全文
ASP.NET MVC2 第五章Ⅰ
摘要:§5 SportsStore: Navigation and Shopping Cart In this Chapter ,you’ll learn how to do the following Use the Html.RenderAction() helper method to create reusable, unit testable,templated controls Vali...
阅读全文
ASP.NET MVC2 第四章Ⅲ
摘要:§4.7 Configuring a Custom URL Schema How is the MVC Framework supposed to invoke your List() method when it doesn’t know what value to supply for page?Change the URL in your browser to http://localhos...
阅读全文
ASP.NET MVC2 第四章Ⅱ
摘要:§4.5 Setting Up DI Before getting started with unit testing, it’s worth putting your DI infrastructure into place. This will deal with resolving dependencies between components.(e.g., ProductsControll...
阅读全文
ASP.NET MVC2 第四章Ⅰ
摘要:Now it’s time to put the framework into action for real and see how those benefits work out in a realistic e-commerce application. Let name our first application with "SportsStore",so the online shopp...
阅读全文
ASP.NET MVC2 第三章Ⅰ
摘要:Before next chapter’s deep dive into a real ASP.NET MVC e-commerce development experience, it’s important to make sure you’re familiar with the architecture, design patterns, tools, and techniques tha...
阅读全文
ASP.NET MVC2 第二章Ⅰ
摘要:§2.1 Preparing Your WorkstationTo build an ASP.NET MVC 2 application, you need either of the following:Visual Studio 2010 (any edition) or the free Visual Web Developer 2010 Express.These include...
阅读全文
ASP.NET MVC2 第二章Ⅱ
摘要:§2.4 A Starter ApplicationIn the remainder of this chapter, you’ll learn some more of the basic ASP.NET MVC principles by building a simple data entry application.In the next chapter, you&r...
阅读全文
ASP.NET MVC2 第一章
摘要:§1.1 A Brief History of Web Development 时间段 技术 优点 缺点 Jurassic Common Gateway Interface (CGI) SimpleFlexibleOnly option at the time Runs outside theweb server, so isresource intensive(spawns separat...
阅读全文