1.

Record Nr.

UNINA9910786636003321

Autore

Galloway Jon

Titolo

Professional ASP.NET MVC 5

Pubbl/distr/stampa

Hoboken : , : Wiley, , 2014

ISBN

1-118-79472-9

Descrizione fisica

1 online resource (622 pages)

Altri autori (Persone)

WilsonBrad

AllenK. Scott

MatsonDavid

Disciplina

005.146

Soggetti

Computer science

Internet programming

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Description based upon print version of record.

Nota di contenuto

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

How AuthorizeAttribute Works with Forms Authentication and the AccountController

Sommario/riassunto

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 fe