Overview
The .NET Framework provides a comprehensive set of classes for building robust web applications and services. This reference covers the core namespaces within System.Web and related libraries that enable HTTP handling, session management, authentication, and more.
Key Namespaces
- System.Web – Core classes for handling HTTP requests and responses.
- System.Web.UI – Web Forms page lifecycle.
- System.Web.Mvc – Model‑View‑Controller framework for ASP.NET.
- System.Web.Caching – Output and object caching utilities.
- System.Web.Security – Forms authentication, roles, and membership.
Getting Started
Below is a minimal example of an ASP.NET Web Forms page that writes a simple greeting.
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Hello World</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label ID="lblMessage" runat="server" Text="Hello, world!" />
</form>
</body>
</html>