Atnaujinkite slapukų nuostatas

El. knyga: Professional ASP.NET MVC 5

3.83/5 (194 ratings by Goodreads)
  • Formatas: EPUB+DRM
  • Išleidimo metai: 15-Jul-2014
  • Leidėjas: Wrox Press
  • Kalba: eng
  • ISBN-13: 9781118794760
Kitos knygos pagal šią temą:
  • Formatas: EPUB+DRM
  • Išleidimo metai: 15-Jul-2014
  • Leidėjas: Wrox Press
  • Kalba: eng
  • ISBN-13: 9781118794760
Kitos knygos pagal šią temą:

DRM apribojimai

  • Kopijuoti:

    neleidžiama

  • Spausdinti:

    neleidžiama

  • El. knygos naudojimas:

    Skaitmeninių teisių valdymas (DRM)
    Leidykla pateikė šią knygą šifruota forma, o tai reiškia, kad norint ją atrakinti ir perskaityti reikia įdiegti nemokamą programinę įrangą. Norint skaityti šią el. knygą, turite susikurti Adobe ID . Daugiau informacijos  čia. El. knygą galima atsisiųsti į 6 įrenginius (vienas vartotojas su tuo pačiu Adobe ID).

    Reikalinga programinė įranga
    Norint skaityti šią el. knygą mobiliajame įrenginyje (telefone ar planšetiniame kompiuteryje), turite įdiegti šią nemokamą programėlę: PocketBook Reader (iOS / Android)

    Norint skaityti šią el. knygą asmeniniame arba „Mac“ kompiuteryje, Jums reikalinga  Adobe Digital Editions “ (tai nemokama programa, specialiai sukurta el. knygoms. Tai nėra tas pats, kas „Adobe Reader“, kurią tikriausiai jau turite savo kompiuteryje.)

    Negalite skaityti šios el. knygos naudodami „Amazon Kindle“.

Provides information on using the ASP.NET MVC 5 framework, covering such topics as the controllers, models, forms, Ajax, routing, NuGet, and unit testing.

ASP.NET MVC insiders cover the latest updates to the technology in this popular Wrox reference

MVC 5 is the newest update to the popular Microsoft technology that enables you to build dynamic, data-driven websites. Like previous versions, this guide shows you step-by-step techniques on using MVC to best advantage, with plenty of practical tutorials to illustrate the concepts. It covers controllers, views, and models; forms and HTML helpers; data annotation and validation; membership, authorization, and security.

  • MVC 5, the latest version of MVC, adds sophisticated features such as single page applications, mobile optimization, and adaptive rendering
  • A team of top Microsoft MVP experts, along with visionaries in the field, provide practical advice on basic and advanced MVC topics
  • Covers controllers, views, models, forms, data annotations, authorization and security, Ajax, routing, ASP.NET web API, dependency injection, unit testing, real-world application, and much more

Professional ASP.NET MVC 5 is the comprehensive resource you need to make the best use of the updated Model-View-Controller technology.

Foreword xxvii
Introduction xxix
Chapter 1 Getting Started
1(30)
A Quick Introduction to ASP.NET MVC
1(1)
How ASP.NET MVC Fits in with ASP.NET
2(1)
The MVC Pattern
2(1)
MVC as Applied to Web Frameworks
3(1)
The Road to MVC 5
3(3)
MVC 4 Overview
6(4)
Open-Source Release
10(1)
ASP.NET MVC 5 Overview
11(1)
One ASP.NET
11(1)
New Web Project Experience
12(1)
ASP.NET Identity
12(1)
Bootstrap Templates
13(1)
Attribute Routing
14(1)
ASP.NET Scaffolding
14(1)
Authentication Filters
15(1)
Filter Overrides
15(1)
Installing MVC 5 and Creating Applications
16(1)
Software Requirements for ASP.NET MVC 5
16(1)
Installing ASP.NET MVC 5
16(1)
Creating an ASP.NET MVC 5 Application
17(1)
The New ASP.NET Project Dialog
18(6)
The MVC Application Structure
24(3)
ASP.NET MVC and Conventions
27(1)
Convention over Configuration
28(1)
Conventions Simplify Communication
29(1)
Summary
29(2)
Chapter 2 Controllers
31(18)
The Controller's Role
31(3)
A Sample Application: The MVC Music Store
34(4)
Controller Basics
38(1)
A Simple Example: The Home Controller
39(3)
Writing Your First Controller
42(3)
Parameters in Controller Actions
45(2)
Summary
47(2)
Chapter 3 Views
49(26)
The Purpose of Views
50(1)
View Basics
50(4)
Understanding View Conventions
54(1)
Strongly Typed Views
55(1)
How ViewBag Falls Short
55(2)
Understanding ViewBag, ViewData, and ViewDataDictionary
57(1)
View Models
58(2)
Adding a View
60(3)
The Razor View Engine
63(1)
What Is Razor?
63(1)
Code Expressions
64(2)
HTML Encoding
66(2)
Code Blocks
68(1)
Razor Syntax Samples
68(2)
Layouts
70(2)
ViewStart
72(1)
Specifying a Partial View
73(1)
Summary
74(1)
Chapter 4 Models
75(34)
Modeling the Music Store
76(4)
Scaffolding a Store Manager
80(1)
What Is Scaffolding?
80(2)
Scaffolding and the Entity Framework
82(3)
Executing the Scaffolding Template
85(7)
Executing the Scaffolded Code
92(5)
Editing an Album
97(1)
Building a Resource to Edit an Album
97(4)
Responding to the Edit POST Request
101(2)
Model Binding
103(1)
The DefaultModelBinder
104(1)
Explicit Model Binding
105(2)
Summary
107(2)
Chapter 5 Forms and Html Helpers
109(28)
Using Forms
110(1)
The Action and the Method
110(1)
To GET or to POST?
111(3)
HTML Helpers
114(1)
Automatic Encoding
115(1)
Making Helpers Do Your Bidding
115(1)
Inside HTML Helpers
116(1)
Setting Up the Album Edit Form
117(1)
Adding Inputs
118(6)
Helpers, Models, and View Data
124(2)
Strongly Typed Helpers
126(1)
Helpers and Model Metadata
127(1)
Templated Helpers
127(1)
Helpers and ModelState
128(1)
Other Input Helpers
129(1)
Html.Hidden
129(1)
Html.Password
129(1)
Html.RadioButton
129(1)
Html.CheckBox
130(1)
Rendering Helpers
130(1)
Html.ActionLink and Html.RouteLink
131(1)
URL Helpers
132(1)
Html.Partial and Html.RenderPartial
133(1)
Html.Action and Html.RenderAction
133(2)
Summary
135(2)
Chapter 6 Data Annotations and Validation
137(22)
Annotating Orders for Validation
138(3)
Using Validation Annotations
141(5)
Custom Error Messages and Localization
146(1)
Looking Behind the Annotation Curtain
147(1)
Controller Actions and Validation Errors
148(2)
Custom Validation Logic
150(1)
Custom Annotations
150(4)
IValidatableObject
154(1)
Display and Edit Annotations
155(1)
Display
155(1)
ScaffoldColumn
156(1)
DisplayFormat
156(1)
ReadOnly
157(1)
DataType
157(1)
UIHint
158(1)
HiddenInput
158(1)
Summary
158(1)
Chapter 7 Membership, Authorization, and Security
159(54)
Security: Not fun, But Incredibly Important
159(3)
Using the Authorize Attribute to Require Login
162(1)
Securing Controller Actions
162(5)
How AuthorizeAttribute Works with Forms Authentication and the AccountController
167(2)
Windows Authentication
169(3)
Using AuthorizeAttribute to Require Role Membership
172(2)
Extending User Identity
174(1)
Storing additional user profile data
174(1)
Persistance control
174(1)
Managing users and roles
175(1)
External Login via OAuth and OpenID
175(1)
Registering External Login Providers
176(2)
Configuring OpenID Providers
178(2)
Configuring OAuth Providers
180(1)
Security Implications of External Logins
181(1)
Understanding the Security Vectors in a Web Application
182(1)
Threat: Cross-Site Scripting
183(10)
Threat: Cross-Site Request Forgery
193(4)
Threat: Cookie Stealing
197(3)
Threat: Over-Posting
200(2)
Threat: Open Redirection
202(5)
Proper Error Reporting and the Stack Trace
207(1)
Using Configuration Transforms
208(1)
Using Retail Deployment Configuration in Production
209(1)
Using a Dedicated Error Logging System
209(1)
Security Recap and Helpful Resources
209(2)
Summary
211(2)
Chapter 8 Ajax
213(44)
jQuery
214(1)
jQuery Features
214(4)
Unobtrusive JavaScript
218(1)
Using jQuery
219(6)
Ajax Helpers
225(1)
Adding the Unobtrusive Ajax Script to Your Project
225(1)
Ajax ActionLinks
226(4)
HTML 5 Attributes
230(1)
Ajax Forms
230(3)
Client Validation
233(1)
jQuery Validation
233(3)
Custom Validation
236(5)
Beyond Helpers
241(1)
jQuery UI
242(1)
Autocomplete with jQuery UI
243(3)
JSON and Client-Side Templates
246(5)
Bootstrap Plugins
251(2)
Improving Ajax Performance
253(1)
Using Content Delivery Networks
253(1)
Script Optimizations
253(1)
Bundling and Minification
254(1)
Summary
255(2)
Chapter 9 Routing
257(42)
Uniform Resource Locators
258(1)
Introduction to Routing
259(1)
Comparing Routing to URL Rewriting
259(1)
Routing Approaches
260(1)
Defining Attribute Routes
260(11)
Defining Traditional Routes
271(9)
Choosing Attribute Routes or Traditional Routes
280(1)
Named Routes
280(2)
MVC Areas
282(2)
Catch-All Parameter
284(1)
Multiple Route Parameters in a Segment
285(1)
StopRoutingHandler and IgnoreRoute
286(1)
Debugging Routes
286(2)
Inside Routing: How Routes Generate URLs
288(1)
High-Level View of URL Generation
288(1)
A Detailed Look at URL Generation
289(2)
Ambient Route Values
291(2)
More Examples of URL Generation with the Route Class
293(1)
Inside Routing: How Routes Tie Your URL to an Action
294(1)
The High-Level Request Routing Pipeline
294(1)
Route Data
295(1)
Custom Route Constraints
295(1)
Using Routing with Web Forms
296(1)
Summary
297(2)
Chapter 10 Nuget
299(34)
Introduction to NuGet
299(2)
Adding a Library as a Package
301(1)
Finding Packages
301(2)
Installing a Package
303(5)
Updating a Package
308(1)
Package Restore
308(1)
Using the Package Manager Console
309(3)
Creating Packages
312(1)
Packaging a Project
313(1)
Packaging a Folder
313(1)
Configuration File and Source Code Transformations
314(1)
NuSpec File
315(1)
Metadata
316(1)
Dependencies
317(1)
Specifying Files to Include
318(1)
Tools
319(3)
Framework and Profile Targeting
322(2)
Prerelease Packages
324(1)
Publishing Packages
325(1)
Publishing to NuGet.org
325(2)
Using NuGet.exe
327(3)
Using the Package Explorer
330(2)
Summary
332(1)
Chapter 11 ASP.NET Web API
333(22)
Defining ASP.NET Web API
334(1)
Getting Started with Web API
335(1)
Writing an API Controller
335(1)
Examining the Sample ValuesController
335(1)
Async by Design: IHttpController
336(4)
Incoming Action Parameters
340(1)
Action Return Values, Errors, and Asynchrony
340(2)
Configuring Web API
342(1)
Configuration in Web-Hosted Web API
343(1)
Configuration in Self-Hosted Web API
343(3)
Adding Routes to Your Web API
346(1)
Binding Parameters
347(2)
Filtering Requests
349(1)
Enabling Dependency Injection
350(1)
Exploring APIs Programmatically
350(2)
Tracing the Application
352(1)
Web API Example: ProductsController
352(2)
Summary
354(1)
Chapter 12 Single Page Applications with Angularjs
355(30)
Understanding and Setting Up AngularJS
356(1)
What's AngularJS?
356(1)
Your Goal in This
Chapter
356(1)
Getting Started
357(2)
Adding AngularJS to the Site
359(2)
Setting Up the Database
361(2)
Building the Web API
363(1)
Building Applications and Modules
364(1)
Creating Controllers, Models, and Views
365(3)
Services
368(3)
Routing
371(2)
Details View
373(2)
A Custom MovieService
375(2)
Deleting Movies
377(2)
Editing and Creating Movies
379(5)
Summary
384(1)
Chapter 13 Dependency Injection
385(22)
Software Design Patterns
385(1)
Design Pattern: Inversion of Control
386(2)
Design Pattern: Service Locator
388(4)
Design Pattern: Dependency Injection
392(3)
Dependency Resolution in MVC
395(2)
Singly Registered Services in MVC
397(1)
Multiply Registered Services in MVC
397(2)
Arbitrary Objects in MVC
399(3)
Dependency Resolution in Web API
402(1)
Singly Registered Services in Web API
402(1)
Multiply Registered Services in Web API
403(2)
Arbitrary Objects in Web API
405(1)
Dependency Resolvers in MVC vs. Web API
405(1)
Summary
405(2)
Chapter 14 Unit Testing
407(22)
Understanding Unit Testing and Test-Driven Development
408(1)
Defining Unit Testing
408(2)
Defining Test-Driven Development
410(2)
Building a Unit Test Project
412(1)
Examining the Default Unit Tests
413(2)
Test Only the Code You Write
415(1)
Advice for Unit Testing Your ASP.NET MVC and ASP.NET Web API Applications
415(1)
Testing Controllers
416(4)
Testing Routes
420(3)
Testing Validators
423(4)
Summary
427(2)
Chapter 15 Extending MVC
429(32)
Extending Models
430(1)
Turning Request Data into Models
430(6)
Describing Models with Metadata
436(2)
Validating Models
438(4)
Extending Views
442(1)
Customizing View Engines
442(2)
Writing HTML Helpers
444(1)
Writing Razor Helpers
445(1)
Extending Controllers
446(1)
Selecting Actions
446(1)
Filters
447(10)
Providing Custom Results
457(1)
Summary
458(3)
Chapter 16 Advanced Topics
461(60)
Mobile Support
461(1)
Adaptive Rendering
462(8)
Display Modes
470(3)
Advanced Razor
473(1)
Templated Razor Delegates
473(1)
View Compilation
474(2)
Advanced View Engines
476(1)
Configuring a View Engine
477(1)
Finding a View
478(1)
The View Itself
479(1)
Alternative View Engines
480(2)
New View Engine or New ActionResult?
482(1)
Advanced Scaffolding
482(1)
Introducing ASP.NET Scaffolding
482(1)
Customizing Scaffold Templates
483(2)
Custom Scaffolders
485(1)
Advanced Routing
486(1)
RouteMagic
486(1)
Editable Routes
487(5)
Advanced Templates
492(1)
The Default Templates
492(4)
Custom Templates
496(2)
Advanced Controllers
498(1)
Defining the Controller: The IController Interface
498(1)
The ControllerBase Abstract Base Class
499(1)
The Controller Class and Actions
500(2)
Action Methods
502(1)
The ActionResult
502(9)
Action Invoker
511(4)
Using Asynchronous Controller Actions
515(5)
Summary
520(1)
Chapter 17 Real-World ASP.NET MVC: Building the NUGET.ORG Website
521(24)
May the Source Be with You
522(4)
WebActivator
526(1)
ASP.NET Dynamic Data
527(3)
Exception Logging
530(2)
Profiling
532(3)
Data Access
535(1)
EF Code--Based Migrations
536(3)
Deployments with Octopus Deploy
539(1)
Automated Browser Testing with Fluent Automation
540(1)
Other Useful NuGet Packages
541(1)
WebBackgrounder
541(1)
Lucene.NET
542(1)
AnglicanGeek.MarkdownMailer
543(1)
Ninject
543(1)
Summary
544(1)
APPENDIX: ASP.NET MVC 5.1
545(20)
ASP.NET MVC 5.1 Release Description
545(4)
Getting MVC 5.1
546(1)
Upgrading MVC 5 Projects from MVC 5.1
546(1)
Upgrading an MVC 5 Application to 5.1
547(2)
Enum Support in ASP.NET MVC Views
549(4)
Attribute Routing with Custom Constraints
553(5)
Route Constraints in Attribute Routing
554(1)
ASP.NET MVC 5.1 Example: Adding a Custom LocaleRoute
554(4)
Bootstrap and JavaScript Enhancements
558(5)
Editor For Now Supports Passing HTML Attributes
558(3)
Client-Side Validation for MinLength and MaxLength
561(1)
Three Small but Useful Fixes to MVC Ajax Support
562(1)
Summary
563(2)
Index 565
Jon Galloway works at Microsoft as a Technical Evangelist focused on ASP.NET MVC.

Brad Wilson has been a professional software developer for more than 20 years, with 10 years in web development.

K. Scott Allen is the founder of OdeToCode LLC, which provides custom development, consulting, and mentoring services for clients worldwide.

David Matson is a software developer at Microsoft. He is part of the MVC 5 and Web API 2 product team.