Files
mono/mcs/class/System.Web/System.Web.UI/ApplicationFileParser.cs
T
Gonzalo Paniagua Javier ce55913aed 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: also support data bind syntax
	inside tags not processed as controls. Added debugging method.

	* System.Web.Compilation/TemplateControlCompiler.cs: reset the number
	of data binding handlers in the proper place. Small fix when getting the
	container type.

	* System.Web.UI/ApplicationFileParser.cs: use the generator to actually
	parse the file.

	* System.Web.UI/ControlBuilder.cs: small fix in NamingContainerType
	because TemplateBuilders have a null ControlType. When a control is
	appended to a parent, assign the child's parent.

	* System.Web.UI/UserControlParser.cs: fixed the value of InputFile.

	IBuySpy works again!

svn path=/trunk/mcs/; revision=14170
2003-05-01 00:54:04 +00:00

51 lines
1.1 KiB
C#

//
// System.Web.UI.ApplicationfileParser
//
// 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 ();
}
protected override Type DefaultBaseType {
get { return typeof (HttpApplication); }
}
protected internal override string DefaultDirectiveName {
get { return "application"; }
}
internal override string BaseVirtualDir {
get { return Context.Request.ApplicationPath; }
}
}
}