Book description
ASP.NET MVC (Model View Framework) allows you to use ready-to-use MVC code so you can develop Web applications faster. This book?s cut-to-the-chase approach gets you up to speed on the new ASP.NET MVC without getting bogging you down in learning or re-learning ASP.NET itself. You?ll receive straightforward instruction on concepts, backed by real-world case studies and examples that offer practical solutions. Topics include test-driven development and unit testing, the principles of the MVC pattern, how to implement it, how to move from traditional ASP.NET Webforms to ASP.NET MVC, and much more.
Table of contents
- Copyright
- About the Author
- About the Technical Editors
- Credits
- Acknowledgments
- Foreword
- Introduction
- 1. The Model-View-Controller Pattern
-
2. ASP.NET WebForms vs. ASP.NET MVC
- 2.1. Overview
- 2.2. Contrasting ASP.NET WebForms with ASP.NET MVC
- 2.3. The Programming Model
- 2.4. The Main Elements of ASP.NET Development
- 2.5. How ASP.NET, ASP.NET WebForms, and ASP.NET MVC Relate
- 2.6. The Implementation of the MVC Pattern in ASP.NET MVC
- 2.7. Summary
- 2.8. Exercise
- 3. Getting Started with ASP.NET MVC
-
4. The Model
- 4.1. What Microsoft Provides for the "M" in MVC
- 4.2. An Overview of the Model
- 4.3. Different Options for Building the Model
- 4.4. LINQ to SQL
- 4.5. ADO.NET Database Objects
- 4.6. ADO.NET Entity Framework
- 4.7. XML
- 4.8. Important Considerations about Creating Data Models
- 4.9. Third-Party Components and Tools
- 4.10. Summary
- 4.11. Exercise
-
5. The Controller
- 5.1. What the Controller Does
- 5.2. Creating a Controller
- 5.3. Defining an Action
- 5.4. Passing Data to the View
- 5.5. Retrieving Data from the Request
- 5.6. Types of Action Results
- 5.7. Using the Core ASP.NET Objects
- 5.8. Summary
- 5.9. Exercises
-
6. The View
- 6.1. The Responsibilities of the View
- 6.2. The Anatomy of a View
- 6.3. Creating a View with Visual Studio
-
6.4. Writing HTML the ASP.NET MVC Way
- 6.4.1. Link-Building Helpers
-
6.4.2. Form Helpers
-
6.4.2.1. Form Field Helpers
- 6.4.2.1.1. The TextBox Helper
- 6.4.2.1.2. The TextArea Helper
- 6.4.2.1.3. The Password Helper
- 6.4.2.1.4. The Hidden Helper
- 6.4.2.1.5. The CheckBox Helper
- 6.4.2.1.6. The RadioButton Helper
- 6.4.2.1.7. The DropDownList Helper
- 6.4.2.1.8. Autobinding the Item List
- 6.4.2.1.9. Autobinding the Selected Item and Specifying the Item List
- 6.4.2.1.10. Using the SelectList Class to Help Create the Options
- 6.4.2.1.11. The ListBox Helper
-
6.4.2.1. Form Field Helpers
- 6.4.3. Validation Helpers
- 6.5. What about the rest?
- 6.6. Writing Your Own Helper Methods
- 6.7. A Shortcut for Creating Views
- 6.8. Summary
- 6.9. Exercises
- 7. Routing
- 8. Unit Testing Concepts
-
9. Testing ASP.NET MVC Applications
- 9.1. Creating a Test Project for ASP.NET MVC
- 9.2. Testing without Mocking
- 9.3. System.Web.Abstractions
- 9.4. Testing with Mocking
- 9.5. Testing Routes
- 9.6. Putting It All Together
- 9.7. Developing with a TDD Approach
- 9.8. Summary
- 9.9. Exercises
- 10. Components
- 11. Action Filters
- 12. AJAX
- 13. Deployment
- 14. Leveraging ASP.NET WebForm Features
-
15. Authentication and Authorization
- 15.1. Principles of Authentication and Authorization
- 15.2. Authentication and Authorization in ASP.NET
- 15.3. Authentication and Authorization in ASP.NET MVC
- 15.4. Summary
- 15.5. Exercises
-
16. Extending ASP.NET MVC
- 16.1. Introduction to Extensibility
- 16.2. Areas of Extensibility
- 16.3. Route Handlers
- 16.4. The Controller Factory
- 16.5. View Engines
- 16.6. Minor Extensibility Points
- 16.7. Summary
- 16.8. Exercises
- 17. Migrating from ASP.NET WebForms
-
18. Case Study 1
- 18.1. The WroxBlog Overview
- 18.2. The WroxBlog Models
- 18.3. The WroxBlog Controllers
-
18.4. The WroxBlog Views
- 18.4.1. The Site Master
- 18.4.2. Adding the Categories Control
- 18.4.3. Adding the Post Control
- 18.4.4. Adding the Posts Control
- 18.4.5. Adding the Comment Control
- 18.4.6. Adding the Comments Control
- 18.4.7. Adding the CommentForm Control
- 18.4.8. Creating the Home View
- 18.4.9. Adding the About View
- 18.4.10. Creating the IndividualPost View
- 18.4.11. Creating the CategoryIndex View
- 18.5. WroxBlog Routing
- 18.6. Check It Out
- 18.7. Summary
- 18.8. Exercises
-
19. Case Study 2
- 19.1. User Stories (aka Requirements)
- 19.2. The WroxGallery External Libraries
- 19.3. Using the TDD Approach
- 19.4. Building the WroxGallery Model
- 19.5. The WroxGallery Controllers
- 19.6. Configuring the IoCC
- 19.7. Creating the WroxGallery Views
- 19.8. Using AJAX and jQuery
- 19.9. Running More Tests
- 19.10. The WroxGallery in Action
- 19.11. Summary
- 19.12. Exercise
- A. Resources
-
B. Exercise Solutions
- B.1. Chapter 1
- B.2. Chapter 2
- B.3. Chapter 3
- B.4. Chapter 4
- B.5. Chapter 5
- B.6. Chapter 6
- B.7. Chapter 7
- B.8. Chapter 8
- B.9. Chapter 9
- B.10. Chapter 10
- B.11. Chapter 11
- B.12. Chapter 12
- B.13. Chapter 13
- B.14. Chapter 14
- B.15. Chapter 15
- B.16. Chapter 16
- B.17. Chapter 17
- B.18. Chapter 18
- B.19. Chapter 19
Product information
- Title: Beginning ASP.NET MVC 1.0
- Author(s):
- Release date: August 2009
- Publisher(s): Wrox
- ISBN: 9780470433997
You might also like
book
Beginning ASP.NET MVC 4
By now you'll have heard of ASP.NET MVC. This exciting new approach to developing ASP.NET web …
book
Professional ASP.NET MVC 2
Top-selling MVC book from a top team at Microsoft—now fully updated! ASP.NET MVC 2.0 is now …
book
ASP.NET Core 3 and React
Build modern, scalable, and cloud-ready single-page applications using ASP.NET Core, React, TypeScript, and Azure Key Features …
book
Learning ASP.NET Core 2.0
Learn how web applications can be built efficiently using ASP.NET Core 2.0 and related frameworks About …