Files
mono/mcs/class/System.Web/System.Web.UI/PageParser.cs
T
Gonzalo Paniagua Javier f2e90236bb 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
* list: added PageHandlerFactory.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/HttpRuntime.cs:
	* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspGenerator.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs: Modified file.
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Hosting/SimpleWorkerRequest.cs:
	* System.Web.UI/PageHandlerFactory.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControlParser.cs: we are now able to compile
	pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.

svn path=/trunk/mcs/; revision=7880
2002-09-28 07:44:14 +00:00

47 lines
875 B
C#

//
// System.Web.UI.PageParser
//
// Authors:
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002 Ximian, Inc (http://www.ximian.com)
//
using System;
using System.Web;
using System.Web.Compilation;
namespace System.Web.UI
{
public sealed class PageParser : TemplateControlParser
{
public static IHttpHandler GetCompiledPageInstance (string virtualPath,
string inputFile,
HttpContext context)
{
PageParser pp = new PageParser ();
IHttpHandler h = (IHttpHandler) pp.GetCompiledInstance (virtualPath, inputFile, context);
return h;
}
protected override Type CompileIntoType ()
{
return PageCompiler.CompilePageType (this);
}
protected override Type DefaultBaseType
{
get {
return typeof (Page);
}
}
protected override string DefaultDirectiveName
{
get {
return "page";
}
}
}
}