Web Forms
Home / Technologies / Microsoft / Web Forms

WEB FORMS

Today’s global world of business never stops. So it is imperative for businesses to find ways to reach their customers and strengthen their workforce in order to perfectly bridge time zones and meet specific end user requirements. For that businesses need to operate at an unprecedented speed and at a highly dynamic scale that is only possible by switching to modern business applications.

ASP.NET Web Forms has been around for a very long time. Over the years, it has evolved dynamically. Today, it provides a robust platform for building web applications, including those that target HTML5.

What Are .NET Web Forms?

ASP.NET Web Forms has a long history of managing code in a collection of code-behind files named something like “Edit-customer.aspx.cs” that contain a partial class. This is the editable part of the class, as there is also a “Edit-customer.designer.aspx.cs” class that contains some generated code for the framework to use in managing the user-interface. If we would like to add dependencies to a page, say a reference to a Customer Repository, we would typically create the Customer Repository in the constructor of the Edit-customer class and then use it appropriately later in the class.

The ASP.NET Web Form features presented in this series include:

  • The Web Application Project (not Web Site Project)
  • Web Forms
  • Master Pages, Configuration
  • Bootstrap
  • Entity Framework Code First, LocalDB
  • Request Validation
  • Strongly Typed Data Controls, Model Binding, Data Annotations, and Value Providers
  • SSL and OAuth
  • ASP.NET Identity, Configuration, and Authorization
  • Unobtrusive Validation
  • Routing
  • ASP.NET Error Handling

Today and Tomorrow with ASP.NET Web Forms and HTML5

There have been a lot of improvements made to ASP.NET Web Forms over the past year. Developers targeting ASP.NET Web Forms and looking to support the latest trends in web development should be encouraged by recent announcements made by teams at Microsoft. However, that doesn’t mean you should wait until HTML5 is supporting entirely by ASP.NET and Visual Studio. The reality is that the specification continues to evolve. This means that has parts of HTML5 start to stabilize, one should expect to see a gap in its support in Visual Studio and ASP.NET. However, as we demonstrated throughout this blog series, these gaps are easily bridged through other tools and framework that are available.

Web Forms now supports model binding, which lets you bind data controls directly to data-access methods. ASP.NET automatically converts data from form fields, query strings, cookies, session state, and view state into method parameters. You can use these parameters to select data from or make updates to the database. You can now write strongly typed, two-way data-binding expressions in Web Forms data controls, instead of using Bind or Eval expressions. This approach lets you access complex properties in data controls. These expressions can be used with the new model binding feature.