
Programming Razor
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Preface
- RazorPad: A Lightweight Razor Editor
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Chapter 1. Introduction
- A Brief History of Microsoft's Web Development Platforms
- Active Server Pages (ASP)
- ASP.NET Web Forms
- ASP.NET MVC
- WebMatrix
- Hello, Razor!
- Differentiating Code and Markup
- Code Nuggets
- Code Blocks
- How Razor Parses Markup and Code
- Disambiguating Code and Markup
- Explicit code nuggets
- The @: character sequence
- The &text& block
- Comments
- Chapter 2. Razor and Microsoft WebMatrix
- Introducing ASP.NET Web Pages
- Installing WebMatrix
- Your First WebMatrix Website
- The File List View
- Website Administration
- Hello World, Razor Style
- Data Access with WebMatrix
- Creating a Database
- Populating the Database with Data
- Displaying Data from the Database
- Creating the Add Post page
- Handling Posted Form Data
- Saving Data to the Database
- Validating Posted Data
- Conversion helpers
- Using validation
- Creating the Home Page
- Chapter 3. Organizing Razor Templates
- Layouts
- Layouts Are Pages, Too!
- Sections
- IsSectionDefined
- Nested Layouts
- Nested Layouts and Sections
- Redefining Sections
- The Layout Rendering Life Cycle
- Nested Layouts
- Partial Views
- Creating Partial Views
- Accessing parameter values
- Reusing Partial Views
- Razor Helpers
- Razor Helper Packages
- Razor Helpers versus Partial Views
- Razor Helpers
- Partial Views
- Executing Common Code
- Executing Code the First Time a Page Executes
- Executing Code Every Time a Page Executes
- Wrapping Views with _PageStart.cshtml Logic
- Executing Multiple _PageStart.cshtml Templates
- Chapter 4. Razor and ASP.NET MVC
- Installing ASP.NET MVC
- The Model-View-Controller Architecture
- ASP.NET MVC View Engines
- The Razor View Engine
- Differentiating Razor syntax and API implementations
- Implementing a Blog Site Using ASP.NET MVC
- The Model
- The Controller
- Data access with Entity Framework code first
- Convention versus Configuration
- Authoring ASP.NET MVC Views with the Razor Syntax
- Adding Razor Views to an ASP.NET MVC Application
- Writing ASP.NET MVC Razor View Markup
- Strongly-Typed Views
- Changing the Base Class
- Applying Custom Base Classes to Multiple Views
- Layouts and Content Pages
- Razor View File Locations
- Controller Views
- Locating Razor Views
- Shared Views
- Views in ASP.NET MVC Areas
- Html and Url Helper Classes
- ASP.NET MVC's Razor View Page Rendering Life Cycle
- Precompiling Razor Views
- Precompiling Razor Views in an ASP.NET MVC application
- Compiling views from MSBuild
- Chapter 5. The Razor API
- Razor Templates: From Markup to .NET Code
- 1. Parse the Razor Template
- 2. Generate .NET Code
- 3. Compile Generated Code into an Executable Class
- 4. Instantiate and Execute the Generated Class
- Meet the Players
- Configuring the Razor Template Engine
- Creating a RazorEngineHost
- Creating the RazorTemplateEngine
- Compiling Razor Templates
- Executing a Razor Template
- Advanced Templating Logic
- Chapter 6. Advanced Techniques
- Inline Templates and Templated Delegates
- Sharing Views Between Projects
- The Razor Single File Generator
- Installing the Razor Single File Generator
- Creating Reusable ASP.NET MVC Views
- Including precompiled views in an ASP.NET MVC web application
- Creating Reusable ASP.NET MVC Helpers
- Razor Single File Generator Generator Implementations
- Unit Testing Razor Views
- Applying Razor to Text-Based Scenarios
- Chapter 7. Conclusion
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.