1 2004-01-16 Jackson Harper <jackson@ximian.com>
3 * TagAttribute.cs: attributes can be stored as encoded html so we
6 2004-01-14 Jackson Harper <jackson@ximian.com>
8 * TemplateControlCompiler.cs: Is a user control is cached and
9 shared use the controls type hashcode for the GUID so it will be
10 the same across instances.
12 2004-01-13 Jackson Harper <jackson@ximian.com>
14 * TemplateControlCompiler.cs: If an item has the partial caching
15 attribute build a PartialCachingControl in the parents __Build method.
16 * BaseCompiler.cs: Add a method for adding class attributes to the
18 * UserControlCompiler.cs: If caching is enabled on a user control
19 add the PartialCachingAttribute to it.
21 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23 * PageCompiler.cs: invoke Request.ValidateInput if required.
25 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27 * AspGenerator.cs: don't rely on GC to close the files parsed. Fixes bug
28 #52521. Patch by liyul@hotmail.com.
30 2003-12-25 Jackson Harper <jackson@ximian.com>
32 * AspGenerator.cs: Allow scriptlets in javascript. This fixes bug
35 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
37 * PageCompiler.cs: assign the ErrorPage property if provided.
39 2003-12-15 Jackson Harper <jackson@ximian.com>
41 * PageCompiler.cs: Add Trace and TraceMode to framework initialize
42 method if they are set.
44 2003-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
46 * AspGenerator.cs: ignore <tbody> when we're inside a server table and
47 fail when runat="server" is applied to <tbody> with a parse error
48 instead of waiting for a compilation error. Fixes bug #52157.
50 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
52 * AspGenerator.cs: basic checking of ID validity. Throw a
53 ParseException when mixing languages.
55 2003-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
57 * PageCompiler.cs: assign LCID, Culture and/or UICulture in
58 FrameworInitialize() if provided in @Page.
62 2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
64 * TemplateControlCompiler.cs: support for expressions of
65 System.Drawing.Size type. Allow getting Color from comma separated
66 numbers, which is not allowed by ColorConverter.
68 This makes http://www.codeproject.com/aspnet/asppopup.asp work.
70 2003-11-13 Jackson Harper <jackson@ximian.com>
72 * PageCompiler.cs: Call InitOutputCache when the OutputCache
75 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
77 * AspGenerator.cs: use fileEncoding from configuration files.
79 * PageCompiler.cs: add assign statements for ContentType,
80 ResponseEncoding and CodePage if supplied.
82 2003-10-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
84 * TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
85 a return statement for user controls with 'void' return type.
87 2003-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
89 * AspParser.cs: fixed bug #49627.
91 2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
93 * BaseCompiler.cs: now gets the CodeCompiler from configuration files.
95 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
97 * Directive.cs: new attribute for @Page directive in 1.1.
99 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
102 * TagAttributes.cs: allow duplicated runat=server attributes and display
103 error page when duplicated attributes and runat is specified.
105 2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
107 * AspTokenizer.cs: moved token numbers above unicode.
109 2003-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
111 * AspGenerator.cs: don't process code render tags inside scripts. Check
112 the language of the script and treat javascript as verbatim input.
115 2003-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
117 * TemplateControlCompiler.cs: fixed bug #48212.
119 2003-09-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
121 * WebServiceCompiler.cs: remove the temporary files here too.
123 2003-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
125 * AspGenerator.cs: fixed bug #46429.
127 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
129 * Directive.cs: support @WebHandler.
131 2003-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133 * TemplateControlCompiler.cs: support string []. Fixes bug #46415.
135 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
137 * BaseCompiler.cs: first look for cached items, then generate the tree.
138 This should speed things up.
140 * CachingCompiler.cs: when compiling web services, use the full path of
141 the .asmx file as key when caching.
143 * WebServiceCompiler.cs: first look for cached items, then generate
146 2003-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
148 * AspParser.cs: more useful error information,
151 * CachingCompiler.cs: honor the debug="true" option.
153 * TemplateControlCompiler.cs: small fixes for templates.
155 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
157 * BaseCompiler.cs: made Compiler property virtual.
159 * CachingCompiler.cs: added support for compiling web services.
161 * WebServiceCompiler.cs: implemented.
163 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
165 * CachingCompiler.cs: fixed bug #43477.
167 2003-05-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
170 * AspTokenizer.cs: fixed bugs #43206 and #43371.
172 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
174 * TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
175 of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
178 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
180 * CompilationException.cs: don't add duplicated lines in the case that
181 mcs reports several errors for the same one.
183 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
185 * AspGenerator.cs: fully support including files, ie., treat them just
186 as C treats #includes.
188 2003-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
192 * TagType.cs: Added support for server side includes.
194 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
196 * CSCompiler.cs: actually add the list of referenced assemblies to the
197 compiler options. Throw a CompilationException if there's an error.
199 * CachingCompiler.cs: added a method to compile directly from a source
202 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
204 * AspGenerator.cs: copy the location before setting the value for the
207 * BaseCompiler.cs: changed parameters for CompilationException.
209 * CompilationException.cs: it takes now line numbers and error
210 descriptions from the CompilerErrorCollection.
212 * Location.cs: used when a copy of an ILocation is needed.
214 * ParseException.cs: implemented new methods to provide line numbers
217 * TemplateControlCompiler.cs: throw a ParseException where appropiate.
219 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
221 * AspGenerator.cs: also support data bind syntax inside tags not
222 processed as controls. Added debugging method.
224 * TemplateControlCompiler.cs: reset the number of data binding handlers
225 in the proper place. Small fix when getting the container type.
227 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
229 * TemplateControlCompiler.cs: correctly set the TemplateSourceDirectory
232 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
234 * AspGenerator.cs: handle code render syntax in tag attributes.
236 * AspParser.cs: the constructor now takes a TextReader.
238 * TemplateControlCompiler.cs: removed comment.
240 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
242 * TemplateControlCompiler.cs: added support for data bound properties.
244 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
246 * AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
247 instead of their names.
249 * AspElements.cs: removed. No longer needed.
251 * AspGenerator.cs: this file is now in charge of interfacing between
252 the parser and the compiler. It manages the creation of the
253 ControlBuilder tree and the compilation of the CodeDOM tree.
255 * AspParser.cs: tag handling is simpler now. Instead of a whole bunch
256 of different Types, tags are just and id and a set of attributes.
257 Implement ILocation interface.
259 * AspTokenizer.cs: added a few methods to help the parser implementing
262 * BaseCompiler.cs: handles the portions of the CodeDOM tree that are
263 common to appliaction, page and user control, including the actual
264 compilation and error handling.
266 * CSCompiler.cs: compiles C# files using CodeDOM interfaces.
268 * CachingCompiler.cs: simplified to use the new interfaces.
270 * CompilationException.cs: it's now using CompilationResult to report
273 * CompilationResult.cs: Removed file.
275 * Directive.cs: to check for the validity of a directive.
277 * GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
280 * ILocation.cs: interface used to now the exact place where a parse
283 * PageCompiler.cs: generates a couple of methods that are only used in
286 * ParseException.cs: use the ILocation interface.
288 * TagAttributes.cs: handles the attributes of the tags parsed.
290 * TagType.cs: an enum for the different kinds of tags.
292 * TemplateControlCompiler.cs: this is the one that does most of the
293 conversion from teh ControlBuilder tree into a CodeDOM tree.
295 * UserControlCompiler.cs: simplified as most of the work is done in
298 * WebServiceCompiler.cs: dummy.
300 2003-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
302 * AspComponentFoundry.cs: added GetComponentType method.
304 2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
306 * AspTokenizer.cs: allow quotes inside server tags that are part of
309 * CachingCompiler.cs: no more 'FileNotFound' exceptions when the
312 2003-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
314 * AspGenerator.cs: generate correct appbase path. It was working with
315 mcs but not with csc.
317 * BaseCompiler.cs: quote arguments and removed GetRandomFileName.
319 * CachingCompiler.cs: quote source file.
321 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
323 * AspGenerator.cs: now the Inherits attribute works as expected for
326 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
328 * CompilationException.cs:
329 * ParseException.cs: display the correct line number in error messages.
331 * AspElements.cs: added TargetSchema attribute for control. It's
334 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
336 * BaseCompiler.cs: fixed the hack to work under windows.
337 * CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
339 2003-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
341 * BaseCompiler.cs: hacks to work-around our buggy System.Uri.
343 2003-03-17 George Kodinov <gkodinov@openlinksw.co.uk>
345 * BaseCompiler.cs: Removed a FIXME: and added a correct calculation of
346 app's private bin path
348 2003-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
352 * CachingCompiler.cs:
353 * CompilationResult.cs:
354 * GlobalAsaxCompiler.cs:
356 * UserControlCompiler.cs: recompile the page if dependencies change.
358 2003-02-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
360 * AspGenerator.cs: corrected typo and wrong fix.
362 2003-02-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
364 * AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
365 when used explicitly.
367 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
369 * AspElements.cs: get the property Type for controls that use
370 ParseChildren with a property name.
372 * AspGenerator.cs: generate correct signature for the method that
373 adds controls to the default property in ParseChildren.
375 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
377 * AspGenerator.cs: rethrow exceptions that may come from parsing or
378 compilation if a user control.
380 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
382 * AspGenerator.cs: throw ParseException on parse
385 * AspParser.cs: added Line and Column props.
387 * CompilationException.cs: derives now from HtmlizedException.
389 * CompilationResult.cs: added fileName field. Fixed set_ExitCode.
391 * GlobalAsaxCompiler.cs:
393 * UserControlCompiler.cs: pass the file name in the CompilationResult.
395 * ParseException.cs: new exception.
398 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
400 * AspGenerator.cs: remove "file://" from the private bin path. Fixes
403 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
405 * AspParser.cs: the parser fires events when it parses an element.
407 * GlobalAsaxCompiler.cs:
409 * UserControlCompiler.cs:
410 * AspElements.cs: modified to use the new parser interface.
412 * AspGenerator.cs: modified to use the new parser. Merge multiple text
413 strings into one single LiteralControl.
415 * AspTokenizer.cs: added Line and Column properties.
417 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
419 * AspParser.cs: fixed bug #36929.
421 2003-01-21 Tim Haynes <thaynes@openlinksw.com>
425 * CachingCompiler.cs: changes to work around spaces and
426 directory-separators in the local filesystem.
428 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
430 * AspGenerator.cs: make the generated file compile with csc after last
433 2003-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
435 * AspGenerator.cs: removed unused variable. Added support for
436 properties/fields of type string [].
438 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
440 * AspGenerator.cs: modified loading of the parent type now that
441 Type.GetType is fixed.
443 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
445 * AspGenerator.cs: cast to Control if the container does not implement
448 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
450 * AspGenerator.cs: fixed a couple of thinkos related to IsSubclassOf.
452 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
454 * AspElements.cs: attributes without value lacked a space afterwards.
456 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
458 * AspGenerator.cs: functions for columns don't return anything. Fixed
461 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
463 * AspGenerator.cs: add data bound controls to code render function.
465 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
467 * AspComponentFoundry.cs: reworked to allow same prefix for multiple
468 controls. You can register 1 assembly plus any number of user controls
469 under the same prefix.
471 * AspGenerator.cs: don't add duplicate 'using' for the same namespace.
472 Hack to allow @Register access to assemblies in other places than bin
475 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
477 * AspElements.cs: added 'codebehind' attribute for page, control and
478 application. It's ignored by MS, but allowed. Fixed typo.
480 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
482 * AspGenerator.cs: fixed EnableSesssionState handling.
484 2003-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
486 * AspGenerator.cs: don't generate instance fields for pages/controls
487 when the base class specified in the Inherits attribute already has
488 them. Closes bug #36262.
490 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
492 * AspGenerator.cs: generate code like 'control.XXX = value' also for
493 public fields (properties were being handled in that way too).
495 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
497 * AspGenerator.cs: now it uses the current HttpContext when creating
498 user controls. TemplateSourceDirectory is no longer a dummy value.
500 * GlobalAsaxCompiler.cs:
502 * UserControlCompiler.cs: set the context which will be used to locate
505 2002-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
507 * AspGenerator.cs: added support for AutoEventWireup attribute in
510 * CompilationResult.cs:
511 * GlobalAsaxCompiler.cs:
513 * UserControlCompiler.cs: store the options.
515 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * AspElements.cs: new method Tag.GetElements
518 used to parse the inner contents of a tag looking for data binding or
521 New property HtmlControlTag.ParseChildren allows
522 differentiation of a couple of HtmlControls that has children as
523 properties (namely HtmlTable and HtmlTableRow).
525 * AspGenerator.cs: fixed container semantics to
526 match BindingContainer one. Implemented Inherits attribute for page and
529 Support HtmlControls that has ChildrenAsProperties.
531 Generate code for data binding functions that matches the semantic of
534 Handle data bound and code render attribute values.
536 Set proper value return for TemplateSourceDirectory. Should be relative
539 * BaseCompiler.cs: moved CompilerOptions and
540 References handling here.
542 * CachingCompiler.cs: copy result of compilation.
544 * CompilationException.cs: simple ToString () implementation.
546 * CompilationResult.cs: implemented CopyFrom and ToString.
548 * GlobalAsaxCompiler.cs:
550 * UserControlCompiler.cs: removed CompilerOptions as it's now handled
551 in the base class. Get all the types in the generated assembly and
552 look for one that derives from the correct Type.
554 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
556 * AspElements.cs: added @Application directive.
558 * AspGenerator.cs: make it work also with application files. We
559 currently generate an extra private function.
561 2002-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
563 * GlobalAsaxCompiler.cs: compiler for global.asax file. If the file
564 exists, it will be compiled into an HttpApplication derived class
565 (directly or through a user-provided class).
567 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
569 * AspGenerator.cs: fixed target file name and generated class name.
570 * BaseCompiler.cs: reference assemblies in PrivateBinPath.
572 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
574 * AspGenerator.cs: reworked user control
575 compilation. Provide the options as a Hashtable for use in compilation.
576 Create the user controls in the private bin path of the domain.
578 * BaseCompiler.cs: base class for the various compiler types.
580 * CachingCompiler.cs: actually executes mcs and do some poor caching
581 (it will use Cache when finished).
583 * CompilationException.cs: this exception has enough information to
584 generate a nice error page.
585 * CompilationResult.cs: used in caching.
587 * PageCompiler.cs: now derives from BaseCompiler
589 * TemplateFactory.cs: no longer needed.
591 * UserControlCompiler.cs: new class used when compiling user controls.
592 * WebServiceCompiler.cs: derives from BaseCompiler.
594 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
596 * AspElements.cs: added ServerComment class.
597 * AspParser.cs: ignore ServerComments tags. Remove server comments when
602 * PageCompiler.cs: check if the type is already cached before generating
604 * TemplateFactory.cs: if csFile parameter is null, only checks if we
605 already have the page compiled.
607 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
609 * AspGenerator.cs: undo one-liner change.
611 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
613 * AspGenerator.cs: removed a few hacks no longer needed.
615 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
617 * PageCompiler.cs: tracing.
618 * TemplateFactory.cs: cache compiled types and tracing.
619 * WebServiceCompiler.cs: new parameter in GetTypeFromsource,
621 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
623 * AspComponentFoundry.cs: fixed typo.
624 * TemplateFactory.cs: use csc style options.
625 * AspGenerator.cs: don't use FileDependencies property of base class.
627 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
629 * System.Web.Compilation/AspElements.cs:
630 * System.Web.Compilation/AspGenerator.cs:
631 * System.Web.Compilation/AspParser.cs:
632 * System.Web.Compilation/PageCompiler.cs:
633 * System.Web.Compilation/TemplateFactory.cs: we are now able to compile
634 pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.
636 2002-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
638 * AspElements.cs: added WebService directive.
639 * WebServiceCompiler.cs: New file.
641 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
643 * PageCompiler.cs: fixed compilation.
645 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
647 * PageCompiler.cs: generate C# file using AspGenerator.
649 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
651 * AspComponentFoundry.cs: LookupFoundry now returns bool.
652 * AspGenerator.cs: New file.
654 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
656 * AspComponentFoundry.cs: New file.
657 * AspElements.cs: renamed Component to Aspcomponent.
659 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
666 * TemplateFactory.cs: first steps to move xsp into System.Web.