Leanpub Header

Skip to main content

Learn ASP.NET MVC

Be ready for coding away next week using ASP.NET MVC 5 and Visual Studio 2015

You know next to nothing about ASP.NET MVC 5 but need to start coding your next application within a week. Don't worry: this book has you covered.

Minimum price

$8.99

$10.99

You pay

$10.99

Author earns

$8.79
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
458
Readers
144
Pages
About

About

About the Book

You're a developer who knows nothing to ASP.NET MVC. Which is fine, except that you need to start coding your next application using ASP.NET MVC 5.

Don't worry: I have you covered. I've been training hundreds of developers like you during years, and converted my experience into this book. I know from experience teaching what takes more time to learn in ASP.NET MVC, and will spend time only where appropriate.

Read this book, and you can code your ASP.NET MVC 5 application using Visual Studio 2015 within a week. Or your money back.

Printed paperback version available here.

Author

About the Author

Arnaud Weil

Arnaud Weil is a born developer: when he was a kid he was controlling his electric train using an Atari ST and some self-made electronics, then as a teenager created and distributed worldwide one of the first Web browsers for some of the first pocket computers, when the Web was just beginning. In fact, he loves coding.

Turning a passion into a career, Arnaud has been coding all kinds of applications from factory tools to smartphone applications to house control solutions. His status as a freelancer allows him to help his clients with many different projects.

But what Arnaud enjoys most is helping other developers: that's why he teaches, speaks, and writes books.

Other books by Arnaud Weil.

Contents

Table of Contents

Introduction

  1. What this book is not
  2. Prerequisites
  3. How to read this book
  4. Tools you need
  5. Source code

1.What is ASP.NET MVC and why use it

  1. 1.1What is it ?
  2. 1.2Why use it ?
  3. 1.3Competing technologies

2.Creating our Web Site

3.ASP.NET MVC inner workings

  1. 3.1Principles
  2. 3.2View

4.Create an application and modify the home page

  1. 4.1Do-it-yourself 1 - Create the application
  2. 4.2Do-it-yourself 2 - Change the home page

5.Razor

  1. 5.1Razor syntax
  2. 5.2Layout views
  3. 5.3Do-it-yourself 4 - Remove some links
  4. 5.4Helpers
  5. I need you, super-hero !

6.Understanding ASP.NET MVC

  1. 6.1Flashback
  2. 6.2Routing
  3. 6.3Controllers
  4. 6.4Be lazy
  5. 6.5Let’s go all the way

7.Typing things up

  1. 7.1The problem with ViewBag and ViewData
  2. 7.2Using and typing the model
  3. 7.3Conventions and simplicity: introducing the ViewModel
  4. 7.4Entity Framework models
  5. 7.5Do-it-yourself 5 - Create the Product model and DbContext
  6. 7.6Do-it-yourself 6 - Add code that creates a database with some products
  7. 7.7Do-it-yourself 7 - Display a products list

8.Updating server data

  1. 8.1Action parameters
  2. 8.2Word of caution about URLs
  3. 8.3Do-it-yourself 8 - Display product details
  4. 8.4HTTP Post parameters
  5. 8.5Passing a full blown object
  6. 8.6Sit and watch - Basic product calculator
  7. 8.7Do-it-yourself 9 - Add a search box to the products list

9.Updating data scenario

  1. 9.1Steps
  2. 9.2Controller
  3. 9.3Automated generation of controller and views
  4. 9.4Do-it-yourself 10 - Create the products management back-office

10.Doing more with controllers and actions

  1. 10.1Actions can generate more than views
  2. 10.2Do-it-yourself 11 - Add images to the products
  3. 10.3Input validation

11.Basic security

  1. 11.1Preventing Cross-Site Scripting
  2. 11.2Rejecting extra fields
  3. 11.3Identifying users
  4. 11.4Do-it-yourself 12 - Secure the back-office

12.Going further

  1. 12.1Deploying your site
  2. 12.2Creating Razor helpers
  3. 12.3Partial views
  4. 12.4Display and edit templates

Do-it-yourself Cheat Sheet

  1. Do-it-yourself 1 - Create the application - correction
  2. Do-it-yourself 2 - Change the home page - correction
  3. Do-it-yourself 3 - Add code to the home page - correction
  4. Do-it-yourself 4 - Remove some links - correction
  5. Do-it-yourself 5 - Create the Product model and DbContext - correction
  6. Do-it-yourself 6 - Add code that creates a database with some products - correction
  7. Do-it-yourself 7 - Display a products list - correction
  8. Do-it-yourself 8 - Display product details - correction
  9. Do-it-yourself 9 - Add a search box to the products list - correction
  10. Do-it-yourself 10 - Create the products management back-office - correction
  11. Do-it-yourself 11 - Add images to the products - correction
  12. Do-it-yourself 12 - Secure the back-office - correction

Definitions

  1. Bootstrap
  2. Dynamic object
  3. Entity Framework
  4. Project
  5. Solution
  6. Solution Explorer

A word from the author

The Learn collection

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub