cover_image

Table of Contents

Chapter 1: Getting Started

A Quick Introduction to ASP.NET MVC

Creating an MVC 3 Application

Understanding the MVC Application Structure

Summary

Chapter 2: Controllers

The Controller's Role

A Brief History of Controllers

A Sample Application: The MVC Music Store

Controller Basics

Summary

Chapter 3: Views

What a View Does

Specifying a View

Strongly Typed Views

View Models

Adding a View

Razor View Engine

Specifying a Partial View

The View Engine

New View Engine or New ActionResult?

Summary

Chapter 4: Models

Modeling the Music Store

Scaffolding a Store Manager

Editing an Album

Model Binding

Summary

Chapter 5: Forms and HTML Helpers

Using Forms

HTML Helpers

Other Input Helpers

Rendering Helpers

Summary

Chapter 6: Data Annotations and Validation

Annotating Orders for Validation

Custom Validation Logic

Display and Edit Annotations

Summary

Chapter 7: Securing Your Application

Using the Authorize Attribute to Require Login

Using the Authorize Attribute to Require Role Membership

Extending Roles and Membership

Understanding the Security Vectors in a Web Application

Proper Error Reporting and the Stack Trace

Security Recap and Helpful Resources

Summary: It's Up to You

Chapter 8: AJAX

jQuery

AJAX Helpers

Client Validation

Beyond Helpers

Improving AJAX Performance

Summary

Chapter 9: Routing

Understanding URLS

Introduction to Routing

Under the Hood: How Routes Tie Your URL to an Action

Custom Route Constraints

Using Routing with Web Forms

Summary

Chapter 10: NuGet

Introduction to NuGet

Installing NuGet

Adding a Library as a Package

Creating Packages

Publishing Packages

Summary

Chapter 11: Dependency Injection

Understanding Software Design Patterns

Using the Dependency Resolver

Summary

Chapter 12: Unit Testing

The Meaning of Unit Testing and Test-Driven Development

Creating a Unit Test Project

Tips and Tricks for Unit Testing Your ASP.NET MVC Application

Summary

Chapter 13: Extending MVC

Extending Models

Extending Views

Extending Controllers

Summary

Chapter 14: Advanced Topics

Advanced Razor

Advanced Scaffolding

Advanced Routing

Templates

Advanced Controllers

Summary

Advertisement

Foreword

Introduction

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.108.185