Files
mono/mcs/class/System.Web/System.Web.UI/TemplateParser.cs
T
Gonzalo Paniagua Javier 31c202887f 2002-12-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: added support for
	AutoEventWireup attribute in @Page and @Control.

	* System.Web.Compilation/CompilationResult.cs:
	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: store the options.

	* System.Web.UI/Control.cs: added AutoEventWireup internal property.

	* System.Web.UI/Page.cs: removed page events wire up from here.

	* System.Web.UI/TemplateControl.cs: new method WireupAutomaticEvents to
	hook up page and user controls events.

	* System.Web.UI/TemplateControlParser.cs: process the options that are
	applicable once we have the instance of the control.

	* System.Web.UI/TemplateParser.cs: also stores the options.

	* System.Web.UI/UserControl.cs: hook up events before initializing the
	control.

svn path=/trunk/mcs/; revision=9623
2002-12-13 15:57:07 +00:00

56 lines
946 B
C#
Executable File

//
// System.Web.UI.TemplateParser
//
// Authors:
// Duncan Mak ([email protected])
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
//
using System;
using System.Collections;
using System.Web;
namespace System.Web.UI
{
public abstract class TemplateParser : BaseParser
{
string inputFile;
string text;
Hashtable options;
protected abstract Type CompileIntoType ();
protected virtual void HandleOptions (object obj)
{
}
protected abstract Type DefaultBaseType { get; }
protected abstract string DefaultDirectiveName { get; }
internal string InputFile
{
get { return inputFile; }
set { inputFile = value; }
}
internal string Text
{
get { return text; }
set { text = value; }
}
internal Type BaseType
{
get { return DefaultBaseType; }
}
internal Hashtable Options {
get { return options; }
set { options = value; }
}
}
}