Professional ASP.NET MVC 3
New edition of the top book on MVC from the top ASP.NET experts at Microsoft! MVC 3.0 is the latest update to Microsoft's Model-View-Controller technology, which enables developers to build dynamic, data-driven web sites. This in-depth book shows you step by step how to use MVC 3.0. Written by...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Indianapolis, Ind. :
John Wiley & Sons, Inc
2011.
|
Edición: | 1st edition |
Colección: | Programmer to programmer.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627799506719 |
Tabla de Contenidos:
- Professional Asp.Net Mvc 3; 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 3; ASP.NET MVC 1 Overview; ASP.NET MVC 2 Overview; ASP.NET MVC 3 Overview; Razor View Engine; Validation Improvements; .NET 4 Data Annotation Support; Streamlined Validation with Improved Model Validation; Rich JavaScript Support; Unobtrusive JavaScript; jQuery Validation; JSON Binding; Advanced Features; Dependency Resolution; Global Action Filters
- MVC 3 Feature Summary: Easier at All Levels Creating an MVC 3 Application; Software Requirements for ASP.NET MVC 3; Installing ASP.NET MVC 3; Installing the MVC 3 Development Components; Installing MVC 3 on a Server; Creating an ASP.NET MVC 3 Application; The New ASP.NET MVC 3 Dialog; Application Templates; View Engines; Testing; Understanding the MVC Application Structure; ASP.NET MVC and Conventions; Convention over Configuration; Conventions Simplify Communication; Summary; Chapter 2: Controllers; The Controller's Role; A Brief History of Controllers
- A Sample Application: The MVC Music Store Controller Basics; A Simple Example: The Home Controller; Writing Your First (Outrageously Simple) Controller; Creating the New Controller; Writing Your Action Methods; A Few Quick Observations; Parameters in Controller Actions; Summary; Chapter 3: Views; What a View Does; Specifying a View; Strongly Typed Views; View Models; Adding a View; Understanding the Add View Dialog Options; Customizing the T4 View Templates; 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; The View Engine; Configuring a View Engine; Finding a View; The View Itself; Alternative View Engines; New View Engine or New Action Result?; Summary; Chapter 4: Models; Modeling the Music Store; Scaffolding a Store Manager; What Is Scaffolding?; Empty Controller; 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; 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
- A Word on Model Binding Security