|
MVC 5 is the latest update to Microsoft`s popular MVC (Model-View-Controller) technology - an established web application framework. MVC enables developers to build dynamic, data-driven web sites. MVC 5 adds sophisticated features like single page applications, mobile optimization, adaptive rendering and more.
As with prior versions, revision shows experienced developers step by step techniques on how to use MVC to its full advantage. Written by top ASP.NET MVC experts at Microsoft along with visionaries in the field, the book`s practical tutorials reinforce concepts and allow you create your own applications.
The book includes new and expanded coverage of:
Controllers, Views, Models Forms and HTML Helpers Data Annotations and Validation Membership, Authorization and Security Ajax Routing NuGet ASP.NET Web API Single Page Applications (New) Dependency Injection Unit Testing Extending MVC Advanced Topics Real-World ASP.NET MVC Foreword Introduction Chapter 1: Getting Started A Quick Introduction To Asp.Net Mvc How Asp.Net Mvc Fits In With Asp.Net The Mvc Pattern Mvc As Applied To Web Frameworks The Road To Mvc 5 Mvc 4 Overview Open-Source Release Asp.Net Mvc 5 Overview One Asp.Net New Web Project Experience Asp.Net Identity Bootstrap Templates Attribute Routing Asp.Net Scaffolding Authentication Filters Filter Overrides Installing Mvc 5 And Creating Applications Software Requirements For Asp.Net Mvc 5 Installing Asp.Net Mvc 5 Creating An Asp.Net Mvc 5 Application The New Asp.Net Project Dialog The Mvc Application Structure Asp.Net Mvc And Conventions Convention Over Configuration Conventions Simplify Communication Summary Chapter 2: Controllers The Controller`S Role A Sample Application: The Mvc Music Store Controller Basics A Simple Example: The Home Controller Writing Your First Controller Parameters In Controller Actions Summary Chapter 3: Views The Purpose Of Views View Basics Understanding View Conventions Strongly Typed Views How Viewbag Falls Short Understanding Viewbag, Viewdata and Viewdatadictionary View Models Adding A View The Razor View Engine What Is Razor? Code Expressions Html Encoding Code Blocks Razor Syntax Samples Layouts Viewstart Specifying A Partial View Summary Chapter 4: Models Modeling The Music Store Scaffolding A Store Manager What Is Scaffolding? Scaffolding And The Entity Framework Executing The Scaffolding Template Executing The Scaffolded Code Editing An Album Building A Resource To Edit An Album Responding To The Edit Post Request Model Binding The Defaultmodelbinder Explicit Model Binding Summary Chapter 5: Forms And Html Helpers Using Forms The Action And The Method To Get Or To Post? Html Helpers Automatic Encoding Making Helpers Do Your Bidding Inside Html Helpers Setting Up The Album Edit Form Adding Inputs Helpers, Models and View Data Strongly Typed Helpers Helpers And Model Metadata Templated Helpers Helpers And Modelstate Other Input Helpers Html.Hidden Html.Password Html.Radiobutton Html.Checkbox Rendering Helpers Html.Actionlink And Html.Routelink Url Helpers Html.Partial And Html.Renderpartial Html.Action And Html.Renderaction Summary Chapter 6: Data Annotations And Validation Annotating Orders For Validation Using Validation Annotations Custom Error Messages And Localization Looking Behind The Annotation Curtain Controller Actions And Validation Errors Custom Validation Logic Custom Annotations Ivalidatableobject Display And Edit Annotations Display Scaffoldcolumn Displayformat Readonly Datatype Uihint Hiddeninput Summary Chapter 7: Membership, Authorization and Security Security: Not Fun but Incredibly Important Using The Authorize Attribute To Require Login Securing Controller Actions How Authorizeattribute Works With Forms Authentication And The Accountcontroller Windows Authentication Using Authorizeattribute To Require Role Membership Extending User Identity Storing Additional User Profile Data Persistance Control Managing Users And Roles External Login Via Oauth And Openid Registering External Login Providers Configuring Openid Providers Configuring Oauth Providers Security Implications Of External Logins Understanding The Security Vectors In A Web Application Threat: Cross-Site Scripting Threat: Cross-Site Request Forgery Threat: Cookie Stealing Threat: Over-Posting Threat: Open Redirection Proper Error Reporting And The Stack Trace Using Configuration Transforms Using Retail Deployment Configuration In Production Using A Dedicated Error Logging System Security Recap And Helpful Resources Summary Chapter 8: Ajax Jquery Jquery Features Unobtrusive Javascript Using Jquery Ajax Helpers Adding The Unobtrusive Ajax Script To Your Project Ajax Actionlinks Html 5 Attributes Ajax Forms Client Validation Jquery Validation Custom Validation Beyond Helpers Jquery Ui Autocomplete With Jquery Ui Json And Client-Side Templates Bootstrap Plugins Improving Ajax Performance Using Content Delivery Networks Script Optimizations Bundling And Minification Summary Chapter 9: Routing Uniform Resource Locators Introduction To Routing Comparing Routing To Url Rewriting Routing Approaches Defining Attribute Routes Defining Traditional Routes Choosing Attribute Routes Or Traditional Routes Named Routes Mvc Areas Catch-All Parameter Multiple Route Parameters In A Segment Stoproutinghandler And Ignoreroute Debugging Routes Inside Routing: How Routes Generate Urls High-Level View Of Url Generation A Detailed Look At Url Generation Ambient Route Values More Examples Of Url Generation With The Route Class Inside Routing: How Routes Tie Your Url To An Action The High-Level Request Routing Pipeline Routedata Custom Route Constraints Using Routing With Web Forms Summary Chapter 10: Nuget Introduction To Nuget Adding A Library As A Package Finding Packages Installing A Package Updating A Package Package Restore Using The Package Manager Console Creating Packages Packaging A Project Packaging A Folder Configuration File And Source Code Transformations Nuspec File Metadata Dependencies Specifying Files To Include Tools Framework And Profile Targeting Prerelease Packages Publishing Packages Publishing To Nuget.Org Using Nuget.Exe Using The Package Explorer Summary Chapter 11: Asp.Net Web Api Defining Asp.Net Web Api Getting Started With Web Api Writing An Api Controller Examining The Sample Valuescontroller Async By Design: Ihttpcontroller Incoming Action Parameters Action Return Values, Errors and Asynchrony Configuring Web Api Configuration In Web-Hosted Web Api Configuration In Self-Hosted Web Api
Adding Routes To Your Web Api Binding Parameters Filtering Requests Enabling Dependency Injection Exploring Apis Programmatically Tracing The Application Web Api Example: Productscontroller Summary Chapter 12: Single Page Applications With Angularjs Understanding And Setting Up Angularjs What`S Angularjs? Your Goal In This Chapter Getting Started Adding Angularjs To The Site Setting Up The Database Building The Web Api Building Applications And Modules Creating Controllers, Models and Views Services Routing Details View A Custom Movieservice Deleting Movies Editing And Creating Movies Summary Chapter 13: Dependency Injection Software Design Patterns Design Pattern: Inversion Of Control Design Pattern: Service Locator Design Pattern: Dependency Injection Dependency Resolution In Mvc Singly Registered Services In Mvc Multiply Registered Services In Mvc Arbitrary Objects In Mvc Dependency Resolution In Web Api Singly Registered Services In Web Api Multiply Registered Services In Web Api Arbitrary Objects In Web Api Dependency Resolvers In Mvc Vs. Web Api Summary Chapter 14: Unit Testing Understanding Unit Testing And Test-Driven Development Defining Unit Testing Defining Test-Driven Development Building A Unit Test Project Examining The Default Unit Tests Test Only The Code You Write Advice For Unit Testing Your Asp.Net Mvc And Asp.Net Web Api Applications Testing Controllers Testing Routes Testing Validators Summary Chapter 15: Extending Mvc Extending Models Turning Request Data Into Models Describing Models With Metadata Validating Models Extending Views Customizing View Engines Writing Html Helpers Writing Razor Helpers Extending Controllers Selecting Actions Filters Providing Custom Results Summary Chapter 16: Advanced Topics Mobile Support Adaptive Rendering Display Modes Advanced Razor Templated Razor Delegates Advanced View Engines Configuring A View Engine Finding A View The View Itself Alternative View Engines New View Engine Or New Actionresult? Advanced Scaffolding Introducing Asp.Net Scaffolding Customizing Scaffold Templates Custom Scaffolders Advanced Routing Routemagic Editable Routes Advanced Templates The Default Templates Custom Templates Advanced Controllers Defining The Controller: The Icontroller Interface The Controllerbase Abstract Base Class The Controller Class And Actions Action Methods The Actionresult Action Invoker Using Asynchronous Controller Actions Summary Chapter 17: Real-World Asp.Net Mvc: Building The Nuget.Org Website May The Source Be With You Webactivator Asp.Net Dynamic Data Exception Logging Profiling Data Access Ef Code--Based Migrations Deployments With Octopus Deploy Automated Browser Testing With Fluent Automation Other Useful Nuget Packages Webbackgrounder Lucene.Net Anglicangeek.Markdownmailer Ninject Summary Appendix: Asp.Net Mvc 5.1 Asp.Net Mvc 5.1 Release Description Getting Mvc 5.1 Upgrading Mvc 5 Projects From Mvc 5.1 Upgrading An Mvc 5 Application To 5.1 Enum Support In Asp.Net Mvc Views Attribute Routing With Custom Constraints Route Constraints In Attribute Routing Asp.Net Mvc 5.1 Example: Adding A Custom Localeroute Bootstrap And Javascript Enhancements Editorfor Now Supports Passing Html Attributes Client-Side Validation For Minlength And Maxlength Three Small But Useful Fixes To Mvc Ajax Support Summary Index ISBN - 9788126551927
|
|
|