|
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
namespace PauloMorgado.Web.UI
{
/// <summary>
/// Provides data for the <see cref="E:PageHandlerFactoryWithModules.PageCreated"></see> event.
/// </summary>
public class PageCreatedEventArgs : PageEventArgs
{
private HttpContext context;
private string requestType;
private string virtualPath;
private string path;
/// <summary>
/// Initializes a new instance of the <see cref="T:PauloMorgado.Web.UI.PageHandlerFactoryWithModules.UI.PageCreatedEventArgs"/> class.
/// </summary>
/// <param name="page">The <see cref="T:Page"/> that processes the request.</param>
/// <param name="context">An instance of the <see cref="T:System.Web.HttpContext"/> class that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.</param>
/// <param name="requestType">The HTTP data transfer method (GET or POST) that the client uses.</param>
/// <param name="virtualPath">The virtual path to the requested page.</param>
/// <param name="path">The <see cref="P:System.Web.HttpRequest.PhysicalApplicationPath"/> property to the requested page.</param>
public PageCreatedEventArgs(Page page, HttpContext context, string requestType, string virtualPath, string path)
: base(page)
{
this.context = context;
this.requestType = requestType;
this.virtualPath = virtualPath;
this.path = path;
}
/// <summary>
/// Gets the <see cref="T:System.Web.HttpContext"/> of the HTTP requests.
/// </summary>
/// <value>The <see cref="T:System.Web.HttpContext"/> of the HTTP requests.</value>
public HttpContext Context
{
get { return this.context; }
}
/// <summary>
/// Gets the HTTP data transfer method (GET or POST) that the client uses.
/// </summary>
/// <value>The HTTP data transfer method (GET or POST) that the client uses.</value>
public string RequestType
{
get { return this.requestType; }
}
/// <summary>
/// Gets the virtual path to the requested page.
/// </summary>
/// <value>The virtual path to the requested page.</value>
public string VirtualPath
{
get { return this.virtualPath; }
}
/// <summary>
/// Gets the <see cref="P:System.Web.HttpRequest.PhysicalApplicationPath"/> property to the requested page.
/// </summary>
/// <value>The <see cref="P:System.Web.HttpRequest.PhysicalApplicationPath"/> property to the requested page.</value>
public string Path
{
get { return this.path; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.