Building ASP.NET Web Pages with Microsoft WebMatrix

By Steve Lydford

WebMatrix is the latest addition to the hugely popular Microsoft ASP.NET web platform. This exciting new technology simplifies the process of developing websites by combining the new and powerful Razor syntax with a fully extensible set of data and HTML helpers for performing common web tasks. This book gives you everything you need to get started!

Full Description

  • ISBN13: 978-1-4302-4020-4
  • 504 Pages
  • User Level: Intermediate
  • Publication Date: December 20, 2011
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

WebMatrix is the latest addition to the hugely popular Microsoft ASP.NET web platform. This exciting new technology aims to simplify the process of developing websites by combining the new and powerful Razor syntax with a fully extensible set of data and HTML helpers for performing common web tasks.

The WebMatrix installation includes all the tools the developer requires to quickly create fully-functional, data-driven, dynamic sites using ASP.NET web pages. The lightweight custom development tool works alongside SQL Server Compact Edition and Internet Information Services (IIS) Express to provide a seamless and easy-to-use environment which enables the web developer to concentrate on the rapid development of feature-rich websites, without the need to learn the complex concepts and highly structured programming models which many other frameworks require.

What you’ll learn

  • How to combine HTML and server-side C# Razor code with the powerful .NET framework to easily develop websites using Microsoft WebMatrix
  • How to create layouts which can be applied across multiple pages
  • How to interact with SQL Server and other databases, using proven techniques and best practices
  • How to add social networking features to your web site using WebMatrix Helpers
  • How to create your own custom functions and helpers to provide reusable code and content
  • How to secure your website using a role-based membership model
  • How to deploy your website to a hosting provider

Who this book is for

This book is aimed at anyone with a basic knowledge of web technologies who wants to use this latest addition to the Microsoft ASP.NET web platform to easily and quickly build feature-rich, dynamic, data-driven websites.

Table of Contents

Table of Contents

  1. Introduction
  2. Getting Started
  3. C# Primer
  4. Working with Razor and ASP.NET Web Pages
  5. Forms and Validation
  6. Working with Data
  7. Security & Membership
  8. Full Application Tutorial: Getting Started
  9. Adding E-Commerce Features
  10. Site Administration
  11. Adding Social Networking with the Package Manager and WebMatrix Helpers
  12. Advanced WebMatrix
  13. Deployment
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 407:

db.Execute(sql, title, price, description,
keywords, category, productId);

productId = db.GetLastInsertId().ToString();



// these two lines of code are giving me errors when I add them into the new product record as part of the adding in code for product image uploading.