System.Web.UI.PageHandlerFactory Class

Creates instances of classes that inherit from the System.Web.UI.Page class and implement the System.Web.IHttpHandler interface. Instances are created dynamically to handle requests for ASP.NET files. The System.Web.UI.PageHandlerFactory class is the default handler factory implementation for ASP.NET pages.

See Also: PageHandlerFactory Members


public class PageHandlerFactory : System.Web.IHttpHandlerFactory


The System.Web.UI.PageHandlerFactory class implements the System.Web.IHttpHandlerFactory interface to provide the default HTTP handler for ASP.NET files. The System.Web.UI.PageHandlerFactory calls the ASP.NET compilation system to compile, if necessary, and return the exact type corresponding to the URL, and then creates an instance of that type. The page type inherits from the System.Web.UI.Page class and implements the System.Web.IHttpHandler interface.

To build a custom page handler factory, implement the System.Web.IHttpHandlerFactory and register the custom System.Web.UI.PageHandlerFactory class in the Web.config file for the application in the httpHandlers Element (ASP.NET Settings Schema) configuration section.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: