Files
mono/mcs/class/System.Web/System.Web.UI/ApplicationFileParser.cs
T
Andreas N 137c68e961 2003-07-27 Andreas Nahr <[email protected]>
* ApplicationFileParser.cs: Fixed signature
	* DesignTimeParseData.cs: Added missing properties, implemented
	* Page.cs: Added attributes
	* PageParser.cs:
	* TemplateControlParser.cs:
	* TemplateParser.cs:
	* UserControlParser.cs: Fixed signature

svn path=/trunk/mcs/; revision=16745
2003-07-27 13:48:44 +00:00

51 lines
1.1 KiB
C#

//
// System.Web.UI.ApplicationFileParser.cs
//
// Authors:
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
//
using System;
using System.Web;
using System.Web.Compilation;
namespace System.Web.UI
{
sealed class ApplicationFileParser : TemplateParser
{
public ApplicationFileParser (string fname, HttpContext context)
{
InputFile = fname;
Context = context;
}
protected override Type CompileIntoType ()
{
GlobalAsaxCompiler compiler = new GlobalAsaxCompiler (this);
return compiler.GetCompiledType ();
}
internal static Type GetCompiledApplicationType (string inputFile, HttpContext context)
{
ApplicationFileParser parser = new ApplicationFileParser (inputFile, context);
AspGenerator generator = new AspGenerator (parser);
return generator.GetCompiledType ();
}
internal override Type DefaultBaseType {
get { return typeof (HttpApplication); }
}
internal override string DefaultDirectiveName {
get { return "application"; }
}
internal override string BaseVirtualDir {
get { return Context.Request.ApplicationPath; }
}
}
}