Skip to:ContentBottom
Cover image for Professional ASP. NET MVC 4.
Professional ASP. NET MVC 4.
Title:
Professional ASP. NET MVC 4.
Author:
Galloway, Jon.
ISBN:
9781118424322
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (507 pages)
Contents:
Professional ASP.Net MVC 4 -- Contents -- 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 4 -- ASP.NET MVC 1 Overview -- ASP.NET MVC 2 Overview -- ASP.NET MVC 3 Overview -- MVC 4 Overview -- ASP.NET Web API -- Enhancements to Default Project Templates -- Mobile Project Template using jQuery Mobile -- Display Modes -- Bundling and Minification -- Included Open Source Libraries -- Miscellaneous Features -- Open Source Release -- Creating an MVC 4 Application -- Software Requirements for ASP.NET MVC 4 -- Installing ASP.NET MVC 4 -- Installing the MVC 4 Development Components -- Installing MVC 4 on a Server -- Creating an ASP.NET MVC 4 Application -- The New ASP.NET MVC 4 Dialog -- Application Templates -- View Engines -- Testing -- 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 -- Creating the New Controller -- Writing Your Action Methods -- A Few Quick Observations -- Parameters in Controller Actions -- Summary -- Chapter 3: Views -- The Purpose of Views -- Specifying a View -- ViewData and ViewBag -- Strongly Typed Views -- View Models -- Adding a View -- Understanding the Add View Dialog Options -- The Razor View Engine -- What Is Razor? -- Code Expressions -- HTML Encoding -- Code Blocks -- Razor Syntax Samples -- Implicit Code Expression -- Explicit Code Expression -- Unencoded Code Expression -- Code Block -- Combining Text and Markup -- Mixing Code and Plain Text -- Escaping the Code Delimiter.

Server-Side Comment -- Calling a Generic Method -- Layouts -- ViewStart -- Specifying a Partial View -- Summary -- Chapter 4: Models -- Modeling the Music Store -- Scaffolding a Store Manager -- What Is Scaffolding? -- Empty Controller -- Controller with Empty Read/Write Actions -- API Controller with Empty Read/Write Actions -- Controller with Read/Write Actions and Views, Using Entity Framework -- Scaffolding and the Entity Framework -- Code First Conventions -- The DbContext Class -- Executing the Scaffolding Template -- The Data Context -- The StoreManagerController -- The Views -- Executing the Scaffolded Code -- Creating Databases with the Entity Framework -- Using Database Initializers -- Seeding a Database -- Editing an Album -- Building a Resource to Edit an Album -- Models and View Models Redux -- The Edit View -- Responding to the Edit POST Request -- The Edit Happy Path -- The Edit Sad Path -- 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? -- Searching for Music with a Search Form -- Searching for Music by Calculating the Action Attribute Value -- HTML Helpers -- Automatic Encoding -- Making Helpers Do Your Bidding -- Inside HTML Helpers -- Setting Up the Album Edit Form -- Html.BeginForm -- Html.ValidationSummary -- Adding Inputs -- Html.TextBox and Html.TextArea -- Html.Label -- Html.DropDownList and Html.ListBox -- Html.ValidationMessage -- 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 -- Passing Values to RenderAction -- Cooperating with the ActionName Attribute -- Summary -- Chapter 6: Data Annotations and Validation -- Annotating Orders for Validation -- Using Validation Annotations -- Required -- StringLength -- RegularExpression -- Range -- Validation Attributes from System.Web.Mvc -- Custom Error Messages and Localization -- Looking behind the Annotation Curtain -- Validation and Model Binding -- Validation and Model State -- 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 -- Using the Authorize Attribute to Require Login -- Securing Controller Actions -- How the AuthorizeAttribute Works with Forms Authentication and the AccountController -- Windows Authentication in the Intranet Application Template -- Securing Entire Controllers -- Securing Your Entire Application Using a Global Authorization Filter -- Using the Authorize Attribute to Require Role Membership -- Extending Roles and Membership -- External Login via OAuth and OpenID -- Registering External Login Providers -- Configuring OpenID Providers -- Configuring OAuth Providers -- Security Implications of External Logins -- Trusted External Login Providers -- Require SSL for Login -- Understanding the Security Vectors in a Web Application -- Threat: Cross-Site Scripting -- Threat Summary -- Passive Injection -- Active Injection -- Preventing XSS -- Threat: Cross-Site Request Forgery -- Threat Summary -- Preventing CSRF Attacks -- Threat: Cookie Stealing -- Threat Summary.

Preventing Cookie Theft with HttpOnly -- Threat: Over-Posting -- Threat Summary -- Preventing Over-Posting with the Bind Attribute -- Threat: Open Redirection -- Threat Summary -- Protecting Your ASP.NET MVC 1 and MVC 2 Applications -- Taking Additional Actions When an Open Redirect Attempt Is Detected -- Open Redirection Summary -- 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 -- The jQuery Function -- jQuery Selectors -- jQuery Events -- jQuery and Ajax -- Unobtrusive JavaScript -- Using jQuery -- Custom Scripts -- Placing Scripts in Sections -- The Rest of the Scripts -- Ajax Helpers -- Ajax ActionLinks -- HTML 5 Attributes -- Ajax Forms -- Client Validation -- jQuery Validation -- Custom Validation -- IClientValidatable -- Custom Validation Script Code -- Beyond Helpers -- jQuery UI -- Autocomplete with jQuery UI -- Adding the Behavior -- Building the Data Source -- JSON and Client-Side Templates -- Adding Templates -- Modifying the Search Form -- Getting JSON -- jQuery.ajax for Maximum Flexibility -- 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 -- Defining Routes -- Route URLs -- Route Values -- Route Defaults -- Route Constraints -- Named Routes -- MVC Areas -- Area Route Registration -- Area Route Conflicts -- Catch-All Parameter -- Multiple URL Parameters in a Segment -- StopRoutingHandler and IgnoreRoute -- Debugging Routes -- Under the Hood: How Routes Generate URLs.

High-Level View of URL Generation -- A Detailed Look at URL Generation -- Ambient Route Values -- Overflow Parameters -- More Examples of URL Generation with the Route Class -- Under the Hood: 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 -- Installing NuGet -- Adding a Library as a Package -- Finding Packages -- Installing a Package -- Updating a Package -- Recent Packages -- Package Restore -- Using the Package Manager Console -- Creating Packages -- Packaging a Project -- Packaging a Folder -- 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 -- Configuration in Third-Party Hosts -- 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: Dependency Injection -- Software Design Patterns -- Design Pattern: Inversion of Control -- Design Pattern: Service Locator -- Strongly Typed Service Locator -- Weakly Typed Service Locator -- The Pros and Cons of Service Locators -- Design Pattern: Dependency Injection.

Constructor Injection.
Abstract:
An outstanding author team presents the ultimate Wrox guide to ASP.NET MVC 4 Microsoft insiders join giants of the software development community to offer this in-depth guide to ASP.NET MVC, an essential web development technology. Experienced .NET and ASP.NET developers will find all the important information they need to build dynamic, data-driven websites with ASP.NET and the newest release of Microsoft's Model-View-Controller technology. Featuring step-by-step guidance and lots of code samples, this guide gets you started and moves all the way to advanced topics, using plenty of examples. Designed to give experienced .NET and ASP.NET programmers everything needed to work with the newest version of MVC technology Expert author team includes Microsoft ASP.NET MVC insiders as well as leaders of the programming community Covers controllers, views, models, forms and HTML helpers, data annotation and validation, membership, authorization, security, and routing Includes essential topics such as Ajax and jQuery, NuGet, dependency injection, unit testing, extending MVC, and Razor Includes additional real-world coverage requested by readers of the previous edition as well as a new case study example chapter.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: