ASP.NET API Reference
This section provides comprehensive API documentation for ASP.NET, covering a wide range of classes, methods, properties, and events that form the backbone of web development with ASP.NET.
Core Namespaces
Explore the core namespaces within ASP.NET to understand their purpose and the types they contain.
Namespace | Description | Key Types |
---|---|---|
System.Web | Provides fundamental classes and interfaces for building web applications, including request/response handling, session management, and HTTP modules. | HttpApplication , HttpRequest , HttpResponse , HttpSessionState |
System.Web.UI | Contains classes for building user interfaces in ASP.NET Web Forms, including controls, pages, and rendering mechanisms. | Page , Control , UserControl , TemplateControl |
System.Web.UI.WebControls | Offers a rich set of server controls for common UI elements like grids, forms, buttons, and more. | GridView , DetailsView , TextBox , Button |
System.Web.Services | Enables the creation of SOAP-based Web Services. | WebService , WebMethodAttribute |
System.Web.Routing | Provides classes for URL routing, enabling cleaner URLs and more SEO-friendly web applications. (Introduced in ASP.NET 4.0) | Route , RouteCollection , RouteTable |
Key Classes and Concepts
Request and Response Handling
Understand how ASP.NET manages incoming requests and outgoing responses.
System.Web.HttpRequest
: Represents an incoming HTTP request.System.Web.HttpResponse
: Represents an outgoing HTTP response.System.Web.HttpContext
: Encapsulates all information specific to an individual HTTP request.
State Management
Learn about the different mechanisms for managing user state across requests.
System.Web.HttpSessionState
: Manages session-specific state for a user.System.Web.HttpCookie
: Represents an HTTP cookie sent between the client and server.System.Web.ProfileCommon
: Manages user profile data.
Server Controls (Web Forms)
A deep dive into the powerful server controls available in ASP.NET Web Forms.
Control | Description |
---|---|
GridView |
Displays data in a tabular format, supporting sorting, paging, and editing. |
FormView |
Displays a single record from a data source and allows for data editing. |
DetailsView |
Displays a single record from a data source and allows for data editing, similar to FormView but with a different layout. |
TextBox |
A standard text input control. |
Button |
A clickable button control. |
DropDownList |
A drop-down list control. |
Commonly Used Classes
System.Web
Namespace
Classes for core HTTP processing and application management.
System.Web.HttpApplication
: The base class for ASP.NET applications.System.Web.HttpRequest
: Details of the incoming request.System.Web.HttpResponse
: Details of the outgoing response.System.Web.HttpContext
: The container for request and response objects.System.Web.SessionState.HttpSessionState
: Management of session state.System.Web.HttpCookie
: Represents HTTP cookies.System.Web.UI.Page
: The base class for ASP.NET pages.
System.Web.UI
Namespace
Classes for building user interfaces and managing the page lifecycle.
System.Web.UI.Control
: The base class for all UI elements in an ASP.NET page.System.Web.UI.UserControl
: Represents a reusable piece of UI.System.Web.UI.MasterPage
: Defines a consistent look and feel for multiple pages.
System.Web.UI.WebControls
Namespace
A rich set of pre-built server controls.
Refer to the table above for a list of common controls.
Other Important Namespaces
System.Web.Services
: For building Web Services.System.Web.Routing
: For URL routing.System.Web.Caching
: For implementing application caching.
Tip: For specific type definitions, methods, and properties, please refer to the detailed documentation linked within each namespace or class.