Professional ASP. NET MVC 5 /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Indianapolis, Indiana :
John Wiley & Sons, Inc.,
2014.
|
Colección: | Programmer to programmer.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright; 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 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 DialogThe 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 ViewThe 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 MethodTo 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 ValidationUsing 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