Creating our first ASP.NET 4.5 Web Forms application

Web Forms is the classical programming framework of ASP.NET. Nowadays, much of the concepts and improvements we will see are common to the other development frameworks such as ASP.NET, MVC, and Web Pages.

In this recipe we will see how to work with the new capabilities of ASP.NET 4.5 by creating a Web Forms application.

Getting ready

In order to use this recipe you should have Visual Studio 2012.

How to do it...

Now, we will create a Code First ASP.NET Web Forms application that will create the database from code. We will also add some seed data.

  1. First, open Visual Studio 2012 and create a new project. We will select the ASP.NET Web Forms Application template by going to visual C# | Web category

Get Microsoft .NET Framework 4.5 Quickstart Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.