Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Instant Razor View Engine How-to
Instant Razor View Engine How-to
Instant Razor View Engine How-to
Ebook152 pages26 minutes

Instant Razor View Engine How-to

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. This is a Packt Instant How-to guide, which provides concise and clear recipes for configuring RazorView and working with its syntax and view types.This book is for developers who are looking for alternate ways to simplify web application development.
LanguageEnglish
Release dateMay 22, 2013
ISBN9781849696319
Instant Razor View Engine How-to

Related to Instant Razor View Engine How-to

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for Instant Razor View Engine How-to

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Instant Razor View Engine How-to - Abhimanyu Kumar Vatsa

    Table of Contents

    Instant Razor View Engine How-to

    Credits

    About the Author

    About the Reviewer

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Errata

    Piracy

    Questions

    1. Instant Razor View Engine How-to

    Introduction

    Why Razor?

    Versions

    Prerequisites

    Creating the project (Should know)

    Getting ready

    How to do it...

    There's more...

    Fundamental Razor syntaxes (Must know)

    Getting ready

    How to do it...

    Inline code expressions

    Code block expression

    Mixed code expression

    Razor layout pages (Become an expert)

    Getting ready

    How to do it...

    How it works...

    There's more...

    Models in Razor (Must know)

    Getting ready

    How to do it...

    Creating a data model class

    Scaffolding view templates

    @inherits and @model directives

    Manually adding view templates

    There's more...

    Razor helpers (Must know)

    Getting ready

    How to do it...

    HTML helpers using the extension method

    HTML helpers using the @helper syntax

    Standard HTML helpers

    Input helpers

    Form helpers

    Validation helpers

    Link helpers

    Label helpers

    How it works...

    There's more...

    Partial views (Should know)

    Getting ready

    How to do it...

    Partial helper

    RenderPartial

    Action and RenderAction helpers

    How it works...

    There's more...

    Instant Razor View Engine How-to


    Instant Razor View Engine How-to

    Copyright © 2013 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: May 2013

    Production Reference: 1160513

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-84969-630-2

    www.packtpub.com

    Credits

    Author

    Abhimanyu Kumar Vatsa

    Reviewer

    Ahsan Murshed

    Acquisition Editor

    Akram Hussain

    Commissioning Editor

    Shreerang Deshpande

    Technical Editor

    Nitee Shetty

    Project Coordinator

    Siddhant Shetty

    Proofreader

    Maria Gould

    Production Coordinator

    Prachali Bhiwandkar

    Cover Work

    Prachali Bhiwandkar

    Cover Image

    Sheetal Aute

    About the Author

    Abhimanyu Kumar Vatsa works at Coxtan College, located in Bokaro Steel City, India as a lecturer focused on web technologies. He is a Microsoft MVP in ASP.NET/IIS. He loves to blog and started blogging in June 2009. He holds a bachelor's degree in Computer Science and Applications, a master's degree in Information Technology, and a few application-level diplomas. He moved to Bokaro Steel City from a remote village to pursue higher education in March 2003, and that was when he saw a computer with Windows 95 OS on Pentium 1 for the first time, and since then, he has never looked back.

    A big thank you to my mom, dad, my sister Ambuj, my brother Avnish, the Indian MVP Community, and to you for reading this book. Enjoy!

    About the Reviewer

    Ahsan Murshed is an ex-MVP (Microsoft Most Valuable Professional) for the period of 2011-2013. Now he is working as a software engineer, with more than 6 years of experience in the

    Enjoying the preview?
    Page 1 of 1