0%

Book Description

Create dynamic web pages in your MVC web application with RazorView Engine

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Configure and setup Razor View
  • Learn the anatomy of Razor View Syntax
  • Create helper components and enable code reusability

In Detail

Razor View Engine is an advanced view engine from Microsoft. Razor View is one of the most popular view engines which doesn’t require you to explicitly close the code block. This book will help you understand and configure RazorView in your system to create dynamic web pages.

Instant Razor View Engine How-to will help you to make your application more MVC friendly with clean, lightweight code which is quicker and easier to understand compared to other view engines.

Instant Razor View Engine How-to introduces you to methods to make your web application more MVC friendly. The book begins by detailing the anatomy of RazorView Syntax and configuring Razor View as well as creating a web application project which will also help you to select an appropriate programming language. The later section of the book goes on to discuss creating view templates and creating View pages using Razor syntax. By the end of the book, you will also be familiar with Razor directives, helper components, and work with Partial views to reuse razor code throughout the application.

Table of Contents

  1. Instant Razor View Engine How-to
    1. Instant Razor View Engine How-to
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    7. 1. Instant Razor View Engine How-to
      1. Introduction
        1. Why Razor?
        2. Versions
        3. Prerequisites
      2. Creating the project (Should know)
        1. Getting ready
        2. How to do it...
        3. There's more...
      3. Fundamental Razor syntaxes (Must know)
        1. Getting ready
        2. How to do it...
          1. Inline code expressions
          2. Code block expression
          3. Mixed code expression
      4. Razor layout pages (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Models in Razor (Must know)
        1. Getting ready
        2. How to do it...
          1. Creating a data model class
          2. Scaffolding view templates
          3. @inherits and @model directives
            1. Manually adding view templates
        3. There's more...
      6. Razor helpers (Must know)
        1. Getting ready
        2. How to do it...
          1. HTML helpers using the extension method
          2. HTML helpers using the @helper syntax
          3. Standard HTML helpers
            1. Input helpers
            2. Form helpers
            3. Validation helpers
            4. Link helpers
            5. Label helpers
        3. How it works...
        4. There's more...
      7. Partial views (Should know)
        1. Getting ready
        2. How to do it...
          1. Partial helper
          2. RenderPartial
            1. Action and RenderAction helpers
        3. How it works...
        4. There's more...
3.149.242.253