Book description
ASP.NET MVC 4 Recipes is a practical guide for developers creating modern web applications, cutting through the complexities of ASP.NET, jQuery, Knockout.js and HTML 5 to provide straightforward solutions to common web development problems using proven methods based on best practices. The problem-solution approach gets you in, out, and back to work quickly while deepening your understanding of the underlying platform and how to develop with it.
Author John Ciliberti guides you through the framework and development tools, presenting typical challenges, along with code solutions and clear, concise explanations, to accelerate application development. Inside you will find recipes dealing with streamlined syntax, full control over HTML, a simple API for creating RESTful web services, writing support for test driven development, and more. Solve problems immediately by pasting in code from the recipes, or put multiple recipe solutions together to overcome challenging development obstacles.
Dive head first into ASP.NET MVC web development with ASP.NET MVC 4 Recipes.
What you'll learn
Inside find recipes that cover:
automating testing and deployment of your application using Visual Studio 2012 and Team Foundation Server
designing and developing your application for Internet scale
deploying to the cloud, working with Big Data and adding resiliency to your application's components
migrating a project from ASP.NET web forms to the MVC 4 including recipes for converting DataGrids, Forms, Web Parts, Master Pages and navigation controls
Client side data binding and templating techniques using Web API, Knockout.js and jQuery
using the Web API to design web services that can be consumed by mobile devices and tablets running Android, iOS, and Windows 8
Who this book is for
This book is a problem-solution guide for web developers looking for a better way to build a modern web application on the Microsoft platform.
There are several types of developers that would find this material useful:
veteran ASP.NET Web Forms developers who wish to update their skillset to include ASP.NET MVC
Project teams who wish to modernize an existing application to allow it to take advantage of MVC 4, .NET 4.5, and Windows Azure
Novice web developers who are looking to expand their skill set by learning the Microsoft web development stack
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- CHAPTER 1: The Need for Modern Web Applications
-
CHAPTER 2: Understanding ASP.NET MVC
- 2-1. Understanding the Microsoft Web Development Ecosystem
- 2-2. Understanding the Differences Between the Versions of the MVC Framework
- 2-3. Understanding the MVC Pattern
- 2-4. Understanding the Differences Between MVC, MVVM, and MVP
- 2-5. Deciding Between MVC and Web Forms
- 2-6. Understanding the ASP.NET MVC Framework Architecture
- 2-7. Understanding Models
- 2-8. Understanding Controllers and Actions
- 2-9. Understanding Page Routing
- 2-10. Understanding View Engines
- 2-11. Choosing a View Engine
- 2-12. Understanding Razor Syntax
- 2-13. Installing an Alternative View Engine
-
CHAPTER 3: Setting Up Your Environment
- 3-1. Acquiring the Ideal Developer Hardware
- 3-2. Choosing an Operating System for Your Development Machine
- 3-3. Choosing Between IIS Express, IIS 8, and the Visual Studio Development Server
- 3-4. Filling Your Development Toolbox
- 3-5. Installing Hyper-V and Setting Up a Virtual Machine
- 3-6. Connecting to a Remote Development Machine Using RDP
- 3-7. Installing Visual Studio 2012
- 3-8. Installing Visual Studio MVC 4 Add-on for Visual Studio 2010
- 3-9. Installing IIS
- 3-10. Configure Your MVC Project to Use IIS Rather Than IIS Express
- 3-11. Configure an Application Pool to Use an Application Identity
- 3-12. Configuring Visual Studio to Automatically Launch As Administrator
- 3-13. Setting Up a Shared Instance of LocalDB
-
CHAPTER 4: Visual Studio 2012 Overview
- 4-1. Understanding Visual Studio 2012
- 4-2. Changing the Style of the Visual Studio Menu
- 4-3. Changing the Visual Studio Color Scheme
- 4-4. Installing Visual Studio Documentation for Offline Use
- 4-5. Resetting the Default Visual Studio Window Layout
- 4-6. Creating a Custom Toolbar
- 4-7. Navigating a Large Razor View or HTML File
- 4-8. Using the Page Inspector to Troubleshoot CSS Layout Bugs
- 4-9. Using the Page Inspector While Debugging
- 4-10. Understanding Visual Studio’s Debugging Windows
- 4-11. Setting a Conditional Breakpoint
- 4-12. Using the Output Window
- 4-13. Using the Extension Manager to Find and Install Add-ons for Visual Studio
- 4-14. Visual Studio Keyboard Shortcuts
-
CHAPTER 5: Getting the Most from the Built-in Templates
- 5-1. Choosing an ASP.NET MVC 4 Project Template
- 5-2. Creating a Simple Web Site Using the ASP.NET MVC 4 Empty Template
- 5-3. Creating a Simple Form with Validation Using the ASP.NET MVC 4 Basic Template
- 5-4. Creating an Intranet Site That Uses Windows Authentication Using the ASP.NET MVC 4 Intranet Template
- 5-5. Configuring Windows Authentication Using the Web.config File
- 5-6. Creating an Internet Site That Uses Forms Authentication Using the Internet Application Template
- 5-7. Modifying an Internet Site to Use a Custom SQL Server Database
- 5-8. Customizing the Registration Page on an Internet Site Created with the ASP.NET MVC 4 Internet Template
-
CHAPTER 6: Architecting Applications with ASP.NET MVC
- 6-1. Understanding the Role of the Architect
- 6-2. Understanding the Buy or Build Decision
- 6-3. Deciding Between a Public Cloud and a Private Data Center
- 6-4. Determining the Size of Your Application’s Local Network
- 6-5. Determining Which Operating System to Deploy
- 6-6. Documenting Your Architecture
- 6-7. Architecting an ASP.NET MVC Application for the Internet
- 6-8. Architecting a Large-Scale Internet Application
- 6-9. Architecting a Line-of-Business Application with ASP.NET MVC
- 6-10. Configuring SQL Server to Use a Custom Port
-
CHAPTER 7: Solution Design
- 7-1. Designing a View That Requires Data from Multiple Models
- 7-2. Using Partial Views to Construct a Composite User Interface
- 7-3. Creating a Model Using Entity Framework Database First
- 7-4. Creating a Model Using Entity Framework Database First with Oracle
- 7-5. Creating a Model Using Entity Framework Model First
- 7-6. Creating a Model Using Entity Framework Code First
- 7-7. Improving Application Startup Performance
- 7-8. Encrypting the Connection Strings in Your Web.config File
- 7-9. Using Areas to Organize a Large ASP.MVC Project
- 7-10. Disabling Automatic Table Creation with the Simple Membership Provider
-
CHAPTER 8: Asynchronous Programming with ASP.NET MVC
- 8-1. Using Async Actions
- 8-2. Running Several Asynchronous Calls in Parallel Inside an Action Method
- 8-3. Consuming WCF Service from an MVC 4 Project
- 8-4. Boosting the Performance of Task-Based Asynchronous Communications Using Caching
- 8-5. Using IL Disassembler to See Code Generated by the C# Compiler
- 8-6. Understanding Threading in IIS
- 8-7. Using Internet Information Services (IIS) Request Monitoring and Tracing
-
CHAPTER 9: Test-Driven Development with ASP.NET MVC 4
- 9-1. Using Testing to Improve the Quality of Your ASP.NET MVC Application
- 9-2. Creating Unit Tests for a Controller Action Using MS Test
- 9-3. Understanding Test-Driven Development Strategies
- 9-4. Defining a Naming Convention for Your Unit Tests
- 9-5. Selecting a Unit Test Framework
- 9-6. Downloading and Installing NUnit
- 9-7. Creating Unit Tests for Controller Actions Using NUnit
- 9-8. Mocking a Repository with Moq
-
CHAPTER 10: Moving From Web Forms to ASP.NET MVC
- 10-1. Creating a Simple Data List Using ASP.NET MVC
- 10-2. Creating a Multiple Column Data List Using a Custom HTML Helper Extension
- 10-3. Creating a Data Grid with Paging, Sorting, and Filtering Support
- 10-4. Creating a Data Grid That Allows Inline Editing
- 10-5. Creating a Master/Details View in ASP.NET MVC
- 10-6. Custom Validators in ASP.NET MVC
- 10-7. Moving from Master Pages in ASP.NET Web Forms to Layout Pages in Razor
- 10-8. Creating a Multipage Wizard Using ASP.NET MVC
- 10-9. Adding MVC to a Web Forms Project
-
CHAPTER 11: Creating Modern User Experiences Using jQuery, Knockout.js, and Web API
- 11-1. Creating an Adaptive Multicolumn Layout Using CSS Media Queries
- 11-2. Creating a Data Grid That Can Page and Sort Without Full-Page Postbacks
- 11-3. Implementing Two-Way Data Binding Using Web API and Knockout
- 11-4. Creating a Custom Route for an API Controller
- 11-5. Using Fiddler to Debug a Web API
-
CHAPTER 12: Mobile, Social, and Cloud Technologies
- 12-1. Using Facebook As Your MVC Web Site’s Identity Provider
- 12-2. Creating a Facebook Canvas Page Application with ASP.NET MVC
- 12-3. Setting Up Your Development for Working with Windows Azure
- 12-4. Storing and Retrieving Files on Windows Azure from an ASP.NET MVC 4 Application
- 12-5. Using Fiddler 2 to Help Debug Azure Calls to the Storage Emulator
- 12-6. Which Is Better: a Mobile Web Application or a Native Device Application?
- 12-7. Creating a Mobile Web Application Using jQuery Mobile and ASP.NET MVC 4
- 12-8. Testing Your Mobile Web Application
- Index
Product information
- Title: ASP.NET MVC 4 Recipes: A Problem-Solution Approach
- Author(s):
- Release date: February 2013
- Publisher(s): Apress
- ISBN: 9781430247739
You might also like
book
ASP.NET MVC 4 in Action
ASP.NET MVC 4 in Action is a fast-paced tutorial designed to introduce ASP.NET MVC to .NET …
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 4
An outstanding author team presents the ultimate Wrox guide to ASP.NET MVC 4 Microsoft insiders join …
book
Pro ASP.NET MVC 5 Platform
The power of ASP.NET MVC 5 stems from the underlying ASP.NET platform. To make your ASP.NET …