Visual Studio 2019
Don't miss the launch of Visual Studio 2019 on April 2.

ASP.NET Web Forms

Build dynamic websites using a drag-and-drop, event-driven model

Web Forms developer docs

Consider Razor Pages instead of Web Forms

Razor Pages is a more modern alternative for building web apps using HTML, CSS, JavaScript, and C#. Razor Pages can run on .NET Core - a high performance, cross-platform and open-source version of .NET that runs on Linux, macOS, and Windows.

Learn about building web apps with Razor

What is Web Forms?

ASP.NET Web Forms lets you build dynamic websites using a drag-and-drop, event-driven model that will be familiar to desktop application developers. Web Forms enables you to think of your forms as a unit, not as separate client and server pieces.

A design surface and hundreds of controls and components let you rapidly build UI-driven sites with data access.

What is Web Forms

Event driven programming

ASP.NET Web Forms bring to web applications the model of writing event handlers for events that occur in the user interface. Web Forms abstracts this model so that the underlying mechanism of capturing an event on the client, transmitting it to the server, and calling the appropriate method is all automatic and invisible to you.

Build your first Web Forms app

Large library of controls

Controls provide abstractions over common UI elements, integrating with the event-driven programming model and rendering the appropriate HTML to send to the client.

Some controls are similar to familiar HTML elements, such as buttons, text boxes, and tables. Other controls encompass complex behavior, such as a calendar controls. There are controls for displaying collections of data, like ListView and GridView. You can also author custom controls for more complex requirements.

Explore Web Forms controls

Simple data integration

Web Forms provides many options for storing, retrieving, and displaying data. You can use data-bound controls to automate the presentation or input of data in web page UI elements such as tables, text boxes, and drop-down lists.

Working with data in Web Forms

Ready to Get Started?

Our step-by-step tutorial will help you get .NET running on your computer.

Supported on Windows, Linux, and macOS

Get Started