Chapter 2. Razor and Microsoft WebMatrix

The previous chapter discussed Microsoft’s various forays into web development platforms and editors and how each of them hits or misses with a given crowd. Microsoft WebMatrix targets a somewhat wide range of developers, but its real sweet spot is the content-driven website comprising a suite of simple yet dynamic web pages.

Introducing ASP.NET Web Pages

For easy authoring of these dynamic web pages, Microsoft introduced ASP.NET Web Pages, a straightforward page-based architecture different from existing ASP.NET technologies, such as Web Forms and ASP.NET MVC. Using the Web Pages approach, developers create their websites one page at a time, adding logic and behavior inline as needed.

This approach mimics other platforms and languages, such as PHP, but Web Pages is backed by the .NET Framework and its popular programming languages, C# and Visual Basic .NET. Using WebMatrix, developers can start with simple web pages, but when their sites require a bit more complexity, they can easily access the full power of the .NET Framework.

Installing WebMatrix

Getting started with WebMatrix is easy. First, install the application using the Web Platform Installer. To do so, navigate to the Web Platform Installer’s website and look for the download link. Once in the Web Platform Installer, search through the list of available products to find the entry for WebMatrix. Click “Install,” and then wait for the download and installation to finish.

Your First WebMatrix ...

Get Programming Razor now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.