Building ASP.NET with Microsoft WebMatrix

Book 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

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
    1. Code Samples
    2. Errata
    3. Contacting the Author
  9. CHAPTER 1: Introducing Microsoft WebMatrix
    1. What is WebMatrix?
    2. Why Use WebMatrix?
    3. What Will I Learn?
    4. The WebMatrix Community
    5. Prerequisites
    6. Summary
  10. CHAPTER 2: Getting Started
    1. Installing WebMatrix
    2. Getting Started with WebMatrix Web Sites
    3. Our First WebMatrix Application
    4. Summary
  11. CHAPTER 3: C# Primer
    1. Types and Variables
    2. Operators
    3. Collections
    4. Conditions
    5. Loops
    6. Object Oriented Programming
    7. Dynamics
    8. Summary
  12. CHAPTER 4: Working with Razor and ASP.NET Web Pages
    1. Razor Syntax
    2. Layout
    3. Helpers
    4. Functions
    5. Maintaining State
    6. Startup Code
    7. URLs and Routing
    8. Summary
  13. CHAPTER 5: Forms and Validation
    1. HTML Forms
    2. HTML Form Helpers
    3. Handling Forms with WebMatrix
    4. Validating User Input
    5. Summary
  14. CHAPTER 6: Working with Data
    1. SQL Server Compact Edition
    2. Interacting with Data
    3. Data Access with WebMatrix
    4. Displaying Data with WebMatrix Helpers
    5. Working with Other Databases
    6. Summary
  15. CHAPTER 7: Security and Membership
    1. Setting Up the WebSecurity Helper
    2. Creating a New User Registration Page
    3. Adding an Account Summary Helper
    4. Providing a Login Page
    5. The Logout Page
    6. Changing Passwords
    7. Protecting Content
    8. Advanced Membership Features
    9. Summary
  16. CHAPTER 8: Using Web Helper Packages
    1. Accessing the Package Manager
    2. Installing a Package
    3. The ASP.NET Web Helpers Library
    4. Summary
  17. CHAPTER 9: TechieTogs: An Example E-commerce Site
    1. Getting Started
    2. Adding a Database
    3. Creating a Product Catalog
    4. Adding Social Networking Features
    5. Searching the Catalog
    6. Custom Error Pages
    7. Summary
  18. CHAPTER 10: TechieTogs: Adding E-commerce Features
    1. The Shopping Process
    2. The Shopping Cart
    3. User Accounts
    4. The Checkout Process
    5. Summary
  19. CHAPTER 11: TechieTogs: Site Administration and Finishing Touches
    1. Creating an Admin Area
    2. The Site Administration Home Page
    3. Amending the Account Summary Helper
    4. User Administration
    5. Orders Administration
    6. Product Categories
    7. Product Administration
    8. Adding Product Images
    9. Displaying Dynamic Content on the Home Page
    10. Summary
  20. CHAPTER 12: Working with Images and Video
    1. Working with Images
    2. Working with Video
    3. Summary
  21. CHAPTER 13: Debugging, Caching, and Deployment
    1. Debugging ASP.NET Web Pages
    2. Improving Performance Using Caching
    3. Search Engine Optimization (SEO) with WebMatrix
    4. Deploying Your Web Site
    5. Summary
  22. Index

Product information

  • Title: Building ASP.NET with Microsoft WebMatrix
  • Author(s): Steve Lydford
  • Release date: December 2011
  • Publisher(s): Apress
  • ISBN: 9781430240204