HttpApplication
The base class for all ASP.NET applications. This class provides the entry point for processing incoming HTTP requests and is responsible for initializing and disposing of the application.
public HttpApplication : IHttpModuleHttpContext
Encapsulates all HTTP-specific information about an individual server request and the response that is being sent back to the client.
public HttpContext : IDisposableKey Properties:
- Request: Gets information about the incoming HTTP request.
- Response: Gets information about the outgoing HTTP response.
- User: Gets the authenticated user for the request.
HttpRequest
Represents the incoming HTTP request data and properties.
public HttpRequestKey Properties:
- HttpMethod: Gets the HTTP method used by the client.
- Url: Gets the URL of the request.
- Form: Gets a collection of form data.
- QueryString: Gets a collection of URL query string values.
HttpResponse
Represents the outgoing HTTP response data and properties.
public HttpResponseKey Properties:
- StatusCode: Gets or sets the HTTP status code for the response.
- ContentType: Gets or sets the HTTP MIME type of the response.
- Write(string): Writes content to the response stream.
HttpServerUtility
Provides utility methods for the server, such as HTML encoding and URL encoding.
public HttpServerUtilityKey Methods:
- UrlEncode(string): Encodes a string for URL transmission.
- HtmlEncode(string): Encodes a string for HTML transmission.