Pro ASP.NET MVC Framework phần 1 pps

58 480 0
Pro ASP.NET MVC Framework phần 1 pps

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

this print for content only—size & color not accurate spine = 1.174" 616 page count Books for professionals By professionals ® Pro ASP.NET MVC Framework Dear Reader, The brand-new ASP.NET MVC Framework represents the biggest shift in Microsoft web development since ASP.NET was first released in 2002. It gives us far greater control over our HTML markup, our URL schema, and our use of requests and responses. It promotes clean application architecture, has deep support for unit testing, and makes it easy to integrate with third-party JavaScript libraries and Ajax toolkits. I’ve written this book because I’m excited about ASP.NET MVC. I hope that by reading it, you’ll gain not only the deepest understanding of what ASP.NET MVC offers and how to use it, but also why it was designed this way, and how you can apply its principles to improve your own code. Because I’m independent of Microsoft, I can freely analyze what works well, what limitations you might encounter, and what alternatives or open source tools you might need to add in. Through discussion, documentation, and a substantial hands-on tutorial, you’ll learn about • The MVC Framework’s powerful facilities, including routing, controllers, filters, views, and model binding • Architecture: The model-view-controller (MVC) pattern, loose coupling, testability, test-driven development (TDD), and relevant design patterns • Extending and customizing the MVC Framework’s request processing pipeline • Securing your MVC application and deploying it to Windows Server • Using core ASP.NET platform features in an MVC application • Integrating with or migrating from older ASP.NET applications This book assumes that you have a working knowledge of C# (although LINQ and the new syntaxes are covered briefly) and some web development experi- ence. If you’ve previously used traditional ASP.NET, also known as WebForms, that’s better still. Enjoy, Steven Sanderson US $49.99 Shelve in .NET User level: Intermediate–Advanced Sanderson ASP.NET MVC Framework The eXperT’s Voice ® in .neT Pro ASP.NET MVC Framework cyan MaGenTa yelloW Black panTone 123 c Steven Sanderson Companion eBook Available THE APRESS ROADMAP Beginning ASP.NET E-Commerce in C# Beginning ASP.NET 3.5 in C# 2008 Pro ASP.NET 3.5 Server Controls and AJAX Components Pro ASP.NET 3.5 in C# 2008 Pro ASP.NET MVC Framework www.apress.com SOURCE CODE ONLINE Companion eBook See last page for details on $10 eBook version Discover the biggest innovation in Microsoft web development since ASP.NET 1.0. ISBN 978-1-4302-1007-8 9 781430 210078 5 4 9 9 9 Pro [...]... http://forums .asp.net/ 11 46.aspx xxiii 10 078fm.qxd 4/8/09 8:40 PM Page xxiv 10 078ch 01. qxd 4/3/09 11 :56 AM PART Page 1 1 Introducing ASP.NET MVC ASP.NET MVC is a radical shift for web developers using the Microsoft platform This new framework emphasizes clean architecture, design patterns, and testability The first part of this book is designed to help you understand broadly the foundational ideas of ASP.NET MVC and... for formatting result set 19 96 Active Server Pages (ASP) General-purpose Interpreted at runtime Encourages “spaghetti code” Continued 3 10 078ch 01. qxd 4 4/3/09 11 :56 AM Page 4 CHAPTER 1 I WHAT’S THE BIG IDEA? Table 1- 1 Continued Time Period Technology Strengths Weaknesses 2002/03 ASP.NET 1. 0 /1. 1 2005 ASP.NET 2.0 Heavy on bandwidth Ugly HTML Untestable 2007 ASP.NET AJAX 2008 ASP.NET 3.5 Compiled “Stateful”... what it’s like to use 10 078ch 01. qxd 4/3/09 11 :56 AM Page 2 10 078ch 01. qxd 4/3/09 11 :56 AM CHAPTER Page 3 1 What’s the Big Idea? A SP.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... 211 Stepping into the NET Framework Source Code 212 Stepping into the ASP.NET MVC Source Code 213 The Request Processing Pipeline 213 Stage 1: IIS 214 Stage 2: Core Routing 216 Stage 3: Controllers and Actions 216 Stage... 11 7 Summary 11 9 ix 10 078fm.qxd x 4/8/09 8:40 PM Page x ICONTENTS I CHAPTER 5 SportsStore: Navigation and Shopping Cart 12 1 Adding Navigation Controls 12 1 Filtering the Product List 12 2 Defining a URL Schema for Categories 12 5 Building... 16 1 Implementing the EmailOrderSubmitter 16 7 Summary 16 9 I CHAPTER 6 SportsStore: Administration and Final Enhancements 17 1 Adding Catalog Management 17 2 Creating AdminController: A Place for the CRUD Features 17 2 Rendering a Grid of Products in the Repository 17 5... Displaying a Login Prompt 19 1 Image Uploads 19 5 Preparing the Domain Model and Database 19 5 Accepting File Uploads 19 6 Displaying Product Images 19 7 Summary 19 9 10 078fm.qxd 4/8/09... 10 2 Configuring a Custom URL Schema 10 6 Adding a RouteTable Entry 10 7 Displaying Page Links 10 8 Styling It Up 11 4 Defining Page Layout in the Master Page 11 4 Adding CSS Rules 11 5 Creating... massively improved CSS refactoring support finally makes it possible to keep track of and sensibly reuse your CSS rules no matter how big your project gets.) 10 078ch 01. qxd 4/3/09 11 :56 AM Page 9 CHAPTER 1 I WHAT’S THE BIG IDEA? Of course, if you do want to throw in some ready-made widgets for complex UI elements like date pickers or cascading menus, ASP.NET MVC s “no special requirements” approach to... WebForms-specific notions such as ViewState) 4 You can even build ASP.NET MVC applications in IronRuby or IronPython, although most businesses are likely to stick with C# and VB NET for the time being This book focuses exclusively on C# 9 10 078ch 01. qxd 10 4/3/09 11 :56 AM Page 10 CHAPTER 1 I WHAT’S THE BIG IDEA? Development and deployment are covered, too Not only is ASP.NET well integrated into Visual Studio, Microsoft’s . since ASP. NET 1. 0. ISBN 978 -1- 4302 -10 07-8 9 7 814 30 210 078 5 4 9 9 9 Pro

Ngày đăng: 06/08/2014, 08:22

Mục lục

    Contents at a Glance

    About the Technical Reviewer

    Who This Book Is For

    How This Book Is Structured

    SP.NET MVC is a radical shift for web developers using the Microsoft platform. This new framework emphasizes clean architecture,

    What’s the Big Idea?

    A Brief History of Web Development

    Web Standards and REST

    Agile and Test-Driven Development

    Tight Control over HTML