Commit Graph
133 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 08ea665cd2 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: added AddContentTemplate method.
	* System.Web.Compilation/TemplateControlCompiler.cs: use the Page
	AddContentTemplate method, as the one in Master is protected. Fixes
	bug #75157.


svn path=/trunk/mcs/; revision=45418
2005-06-04 21:15:30 +00:00
Gonzalo Paniagua Javier 5ec4fcf421 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs:
	* TemplateControlCompiler.cs: removed warnings.


svn path=/trunk/mcs/; revision=43360
2005-04-20 22:18:19 +00:00
Lluis Sanchez 3088a4ad24 2005-04-15 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: 


svn path=/trunk/mcs/; revision=43075
2005-04-15 20:42:02 +00:00
Lluis Sanchez 1258f1ed69 2005-04-14 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: Use the new BindingContainerType
	property to find the type of the binding container. 
	

svn path=/trunk/mcs/; revision=42998
2005-04-14 12:24:50 +00:00
Lluis Sanchez 03b5c34ed7 2005-04-07 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: Avoid using the GetConverter() trick
	for primitive types. Parse an empty color string as Color.Empty.
	Get the converter for a property using its PropertyDescriptor.
	

svn path=/trunk/mcs/; revision=42894
2005-04-13 09:01:03 +00:00
Lluis Sanchez c80e02b8ed 2005-04-05 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: Don't autogenerate IDs for
	controls inside Content template.


svn path=/trunk/mcs/; revision=42556
2005-04-05 11:22:35 +00:00
Gonzalo Paniagua Javier 8cfab754a0 2005-03-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: make typedesc.aspx work again.


svn path=/trunk/mcs/; revision=42005
2005-03-18 19:30:53 +00:00
Lluis Sanchez 4fa3f910d8 2005-01-28 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: When generating a property value,
	check for TypeConverterAttribute in the PropertyInfo, not only in the
	property type.
	Implemented code generation using InstanceDescriptor, when the type
	converter supports conversion to that type.


svn path=/trunk/mcs/; revision=40094
2005-02-04 00:04:05 +00:00
Lluis Sanchez e1e3b57371 2005-01-21 Lluis Sanchez Gual <[email protected]>
* Directive.cs: Added MASTER directive.
	* AspGenerator.cs: Use UserControlCompiler for compiling master pages.
	* PageCompiler.cs: Set the master file name when generating the page.
	* TemplateControlCompiler.cs: When generating the method for a
	content holder, register the content holder in the base MasterPage.
	Added method for registering a Content control for a MasterPage.
	Generate code for Content controls.


svn path=/trunk/mcs/; revision=39320
2005-01-21 18:03:58 +00:00
Lluis Sanchez 6332d086d6 2005-01-10 Lluis Sanchez Gual <[email protected]>
* TemplateControlCompiler.cs: Get the container type from the
	template (if it was defined using TemplateContainerAttribute.


svn path=/trunk/mcs/; revision=38621
2005-01-10 15:24:18 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier e640278680 2004-06-19 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: for system colors, use SystemColors class
	instead of Color. Fixes bug #60249.

svn path=/trunk/mcs/; revision=29936
2004-06-19 10:24:16 +00:00
Gonzalo Paniagua Javier 34fbc1363d 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: dynamicBase is now protected. Check
	MONO_ASPNET_NODELETE here.

	* TemplateControlCompiler.cs: if the type is not known but has a
	TypeConverter, invoke ConvertFromString in the generated code.

	* WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
	the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.

	* CachingCompiler.cs: updated compilation of web services and simple
	web handlers.

svn path=/trunk/mcs/; revision=29255
2004-06-11 04:03:13 +00:00
Gonzalo Paniagua Javier d67b6715cd 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
	of CodeObjectCreateExpression for the render method delegate. Thanks
	to Jochen Wezel.

svn path=/trunk/mcs/; revision=28775
2004-06-03 17:18:13 +00:00
Lluis Sanchez 81db054b23 * TemplateControlCompiler.cs: Fixed build for net_1_0 profile.
svn path=/trunk/mcs/; revision=24934
2004-04-01 22:51:21 +00:00
Jackson Harper 2d09971ed5 * TemplateControlCompiler.cs: Call ToString on the types hashcode,
the build method takes strings not ints.

svn path=/trunk/mcs/; revision=22614
2004-01-30 18:06:26 +00:00
Gonzalo Paniagua Javier 88bd37e884 2004-01-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: fixlet for session events hook.

	* System.Web.Compilation/AspGenerator.cs: handle more possible errors
	in global.asax file.

	* System.Web.Compilation/BaseCompiler.cs: added utility methods for
	creating <object> related properties and fields.

	* System.Web.Compilation/GlobalAsaxCompiler.cs: keep around applications
	and session scope objects builders. Also a list of imports and
	assemblies added in global.asax.

	* System.Web.Compilation/TemplateControlCompiler.cs: use base class
	methods for <object> stuff.

	* System.Web.UI/ApplicationFileParser.cs: check for error in directives.
	Use GlobalAsaxCompiler.CompileApplicationType for compiling.

	* System.Web.UI/ObjectTagBuilder.cs: load the Type and check for errors.

	* System.Web.UI/TemplateParser.cs: add assemblies and imports from
	global.asax.

	Now we properly create accessors for session and application objects in
	the application itself, pages and controls. First step for fixing
	bug #53387.

svn path=/trunk/mcs/; revision=22584
2004-01-28 22:19:23 +00:00
Gonzalo Paniagua Javier a7feec3356 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: allow handling subproperties for other
	types than Style and Font. Fixes bug #53217.

svn path=/trunk/mcs/; revision=22418
2004-01-23 07:00:13 +00:00
Jackson Harper 7e8fb6a4b2 * TemplateControlCompiler.cs: Is a user control is cached and
shared use the controls type hashcode for the GUID so it will be
	the same across instances.

svn path=/trunk/mcs/; revision=22079
2004-01-15 01:11:49 +00:00
Jackson Harper 478790c70c * TemplateControlCompiler.cs: If an item has the partial caching
attribute build a PartialCachingControl in the parents __Build method.
	* BaseCompiler.cs: Add a method for adding class attributes to the
	class.
	* UserControlCompiler.cs: If caching is enabled on a user control
	add the PartialCachingAttribute to it.

svn path=/trunk/mcs/; revision=22034
2004-01-13 21:22:37 +00:00
Gonzalo Paniagua Javier 0834470382 2003-11-20 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: support for expressions of
	System.Drawing.Size type. Allow getting Color from comma separated
	numbers, which is not allowed by ColorConverter.

	This makes http://www.codeproject.com/aspnet/asppopup.asp work.

svn path=/trunk/mcs/; revision=20263
2003-11-20 08:03:06 +00:00
Gonzalo Paniagua Javier 4f4db5ab86 2003-10-21 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
	a return statement for user controls with 'void' return type.

svn path=/trunk/mcs/; revision=19282
2003-10-21 21:35:45 +00:00
Gonzalo Paniagua Javier 5e1e0c3340 2003-09-19 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: fixed bug #48212.

svn path=/trunk/mcs/; revision=18185
2003-09-19 07:05:11 +00:00
Gonzalo Paniagua Javier eb16387133 2003-07-16 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: support string []. Fixes bug #46415.

svn path=/trunk/mcs/; revision=16285
2003-07-16 03:29:58 +00:00
Gonzalo Paniagua Javier b65f52da22 class status fixes
svn path=/trunk/mcs/; revision=16035
2003-07-08 09:37:18 +00:00
Gonzalo Paniagua Javier 58730d5c6e 2003-07-04 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: more useful error information,

	* BaseCompiler.cs:
	* CachingCompiler.cs: honor the debug="true" option.

	* TemplateControlCompiler.cs: small fixes for templates.

svn path=/trunk/mcs/; revision=15907
2003-07-04 00:43:07 +00:00
Gonzalo Paniagua Javier 8a0ad928cb 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
	of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
	reporting.

svn path=/trunk/mcs/; revision=14448
2003-05-10 09:52:59 +00:00
Gonzalo Paniagua Javier a3e7d18173 2003-05-01 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HtmlizedException.cs: added more virtual methods.

	* System.Web/HttpException.cs:  some work on the output when there's
	a source file present.

	* System.Web.Compilation/AspGenerator.cs: copy the location before
	setting the value for the control builders.

	* System.Web.Compilation/BaseCompiler.cs: changed parameters for
	CompilationException.

	* System.Web.Compilation/CompilationException.cs: it takes now line
	numbers and error descriptions from the CompilerErrorCollection.

	* System.Web.Compilation/Location.cs: used when a copy of an ILocation
	is needed.

	* System.Web.Compilation/ParseException.cs: implemented new methods
	to provide line numbers and souce file.

	* System.Web.Compilation/TemplateControlCompiler.cs: throw a
	ParseException where appropiate.

	* System.Web.UI/BaseParser.cs: Location property is now here. Added a
	couple of convenience methods to throw a ParseException.

	* System.Web.UI/TemplateParser.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI/PageParser.cs: throw ParseException where appropiate.

svn path=/trunk/mcs/; revision=14191
2003-05-01 19:34:32 +00:00
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
Gonzalo Paniagua Javier 201982bea9 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/TemplateControlCompiler.cs: correctly set
	the TemplateSourceDirectory value.

	* System.Web.UI/ApplicationFileParser.cs: store the Context and
	override BaseVirtualDir so that it's the application path.

	* System.Web.UI/BaseParser.cs: removed CurrentVirtualPath property.

	* System.Web.UI/TemplateControlParser.cs: use BaseVirtualDir.

	* System.Web.UI/UserControlParser.cs: removed CurrentVirtualPath.

svn path=/trunk/mcs/; revision=14168
2003-04-30 20:07:26 +00:00
Gonzalo Paniagua Javier b25312c41b 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: handle code render syntax in tag attributes.

	* AspParser.cs: the constructor now takes a TextReader.

	* TemplateControlCompiler.cs: removed comment.

svn path=/trunk/mcs/; revision=14166
2003-04-30 19:42:58 +00:00
Gonzalo Paniagua Javier 38a3d0f4af 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: added support for data bound properties.

svn path=/trunk/mcs/; revision=14164
2003-04-30 16:52:45 +00:00
Gonzalo Paniagua Javier e80814a23c 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
	instead of their names.

	* AspElements.cs: removed. No longer needed.

	* AspGenerator.cs: this file is now in charge of interfacing between
	the parser and the compiler. It manages the creation of the
	ControlBuilder tree and the compilation of the CodeDOM tree.

	* AspParser.cs: tag handling is simpler now.  Instead of a whole bunch
	of different Types, tags are just and id and a set of attributes.
	Implement ILocation interface.

	* AspTokenizer.cs: added a few methods to help the parser implementing
	ILocation.

	* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
	common to appliaction, page and user control, including the actual
	compilation and error handling.

	* CSCompiler.cs: compiles C# files using CodeDOM interfaces.

	* CachingCompiler.cs: simplified to use the new interfaces.

	* CompilationException.cs: it's now using CompilationResult to report
	errors.

	* CompilationResult.cs: Removed file.

	* Directive.cs: to check for the validity of a directive.

	* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
	in BaseCompiler.

	* ILocation.cs: interface used to now the exact place where a parse
	error happens.

	* PageCompiler.cs: generates a couple of methods that are only used in
	pages.

	* ParseException.cs: use the ILocation interface.

	* TagAttributes.cs: handles the attributes of the tags parsed.

	* TagType.cs: an enum for the different kinds of tags.

	* TemplateControlCompiler.cs: this is the one that does most of the
	conversion from teh ControlBuilder tree into a CodeDOM tree.

	* UserControlCompiler.cs: simplified as most of the work is done in
	its base classes.

	* WebServiceCompiler.cs: dummy.

svn path=/trunk/mcs/; revision=14140
2003-04-30 04:56:01 +00:00