Commit Graph
681 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier d7f1dbcff0 missed these two
svn path=/trunk/mcs/; revision=128276
2009-02-28 20:37:37 +00:00
Gonzalo Paniagua Javier e63f092be1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* AppResourcesAssemblyBuilder.cs:
	* BuildManagerDirectoryBuilder.cs:
	* AspComponentFoundry.cs:
	* AssemblyBuilder.cs:
	* CachingCompiler.cs:
	* AspGenerator.cs:
	* WsdlBuildProvider.cs:
	* BaseCompiler.cs:
	* BuildProvider.cs:
	* AppWebReferencesCompiler.cs:
	* TemplateControlCompiler.cs:
	* BuildManager.cs:
	* AppCodeCompiler.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.


svn path=/trunk/mcs/; revision=128275
2009-02-28 20:30:31 +00:00
Marek Habersack 2aaf750270 2009-02-26 Marek Habersack <[email protected]>
* TagAttributes.cs: modified ToString to return string formatted
	in a more helpful way.

	* AspParser.cs: added ToString, helpful when debugging.

	* AspGenerator.cs: properly print leading and trailing plain text
	when looking for embedded tags in ProcessTagsInAttributes.

svn path=/trunk/mcs/; revision=128091
2009-02-26 14:16:20 +00:00
Marek Habersack 39ea4c8b32 2009-02-25 Marek Habersack <[email protected]>
* AspTokenizer.cs: put_back now uses a stack and allows more than
	one invocation when called inside a tag.

	* AspGenerator.cs: when a nested parser is used, pay attention to
	server tags found inside client tags and add them to the control
	tree.

svn path=/trunk/mcs/; revision=127935
2009-02-25 02:49:25 +00:00
Marek Habersack 75a2356018 2009-02-24 Marek Habersack <[email protected]>
* BuildManager.cs: Path.Combine must not be passed null first
	parameter.

svn path=/trunk/mcs/; revision=127878
2009-02-24 18:12:35 +00:00
Gonzalo Paniagua Javier 38d6841577 2009-02-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
	method.
	* System.Web/HttpResponseStream.cs: added support for writing from an
	IntPtr. copied the memcpy method from String.cs.

	* System.Web.Compilation/BuildManager.cs: updated comment.

	* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
	like a LiteralControl but will render itself from the bytes pointed to
	by an IntPtr and not create any string from the underlying data unless
	needed.

	* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
	that are used from the precompiled assemblies for a web project. The
	most notable change needed is to be able to read a win32 resource from
	the dll of the control. The resource is a concatenation of literals
	with plain text for the control and a specialized LiteralControl is
	generated from different chunks of the resource.

	* System.Web.UI/HtmlTextWriter.cs: new method that returns the
	HttpWriter in use.

	* System.Web.dll.sources: added new file.

	* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
	win32 resource associated with the control's assembly.


svn path=/trunk/mcs/; revision=127579
2009-02-20 21:30:58 +00:00
Gonzalo Paniagua Javier a6b02b8aee svn path=/trunk/mcs/; revision=127355 2009-02-18 23:53:11 +00:00
Gonzalo Paniagua Javier bbfde12266 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
	* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
	* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
	* System.Web.Compilation/BuildManager.cs: initial support for
	precompilation. No 'updatable', please.



svn path=/trunk/mcs/; revision=127352
2009-02-18 23:49:33 +00:00
Marek Habersack 5df8b478b6 2009-02-13 Marek Habersack <[email protected]>
* AspParser.cs: added an event raised when parsing is complete.

	* AspGenerator.cs: added support for PageParserFilter which, if
	found, is used to control certain aspects of code parsing
	(accepting/rejecting control types, accepting/rejecting code
	snippets, parsing completion)
	Added the AddControl method, used by PageParserFilter when a
	custom filter wants to inject a control in the current control
	builder tree.

2009-02-13  Marek Habersack  <[email protected]>

	* TemplateParser.cs: PageParserFilter handling moved to here.
	PagesConfig must use the current virtual path when retrieving the
	section, or otherwise we'll miss the lower level web.configs.
	Added the AddControl method, used by PageParserFilter.
	Implementing filtering of: parsed directives and the base type, if
	a page parser filter is present.

	* PageParserFilter.cs: added missing 3.5 members and implemented
	everything.

	* PageParser.cs: moved PageParserFilter processing to
	TemplateParser.
	VirtualPath must be set before anything else.
	Call page parser filter's directive preprocessing code from
	AddDirective if a filter is present and a mastertype or
	previouspagetype directive is parsed.

	* MasterPageParser.cs: when PageParserFilter is present use it to
	preprocess the MasterType directive.

svn path=/trunk/mcs/; revision=126855
2009-02-13 20:11:19 +00:00
Marek Habersack b82b595555 2009-02-05 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: implemented a type resolver for
	ResXResourceReader so that it can correctly resolve
	System.Resources types which are normally found in
	System.Windows.Forms but are included by System.Web
	directly. Without the type resolver, code comparing types inside
	ResXResourceReader when file references are used in side the .resx
	file will not work correctly. The reason for that is that .resx
	files will name "System.Resources.ResXFileRef,
	System.Windows.Forms" as the file reference handler, while inside
	System.Web ResXFileRef will be of type
	"System.Resources.ResXFileRef, System.Web". Fixes bug #466059

svn path=/trunk/mcs/; revision=125945
2009-02-05 22:08:33 +00:00
Marek Habersack f3b110a6d0 2009-02-05 Marek Habersack <[email protected]>
* GenericBuildProvider.cs: added a new virtual method, MapPath,
	which can be overriden by builders which need special handling of
	virtual path mapping.

	* PageBuildProvider.cs: provide implementation of
	GenericBuildProvider.MapPath which takes into account fake virtual
	paths. Fixes bug #463950

svn path=/trunk/mcs/; revision=125857
2009-02-05 13:15:06 +00:00
Marek Habersack 135d21c0b3 2009-01-26 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: added support for fake virtual
	paths.

svn path=/trunk/mcs/; revision=124536
2009-01-26 17:51:25 +00:00
Marek Habersack 4a986567ec 2009-01-26 Marek Habersack <[email protected]>
* CompilationException.cs: added a Message override to make error
	messages more useful.

svn path=/trunk/mcs/; revision=124475
2009-01-26 10:46:23 +00:00
Gonzalo Paniagua Javier 2cd8cdbf02 2009-01-23 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: no need to throw. Caller handles a null
	return value.


svn path=/trunk/mcs/; revision=124403
2009-01-24 05:16:23 +00:00
Marek Habersack 502f34f419 2009-01-23 Marek Habersack <[email protected]>
* BuildManager.cs: use -1 for infinite wait in calls to
	Acquire{Reader,Writer}Lock ()

svn path=/trunk/mcs/; revision=124329
2009-01-23 14:29:07 +00:00
Marek Habersack dfc843bcf1 2009-01-22 Marek Habersack <[email protected]>
* Makefile (SYSTEMCORE_DEP):
	If NO_SYSTEMCORE_DEP is defined System.Web.dll will not be linked
	with System.Core.dll and BuildManager will use ReaderWriterLock
	instead of ReaderWriterLockSlim.

2009-01-22  Marek Habersack  <[email protected]>
	* BuildManager.cs:
	 - if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
	 ReaderWriterLockSlim

svn path=/trunk/mcs/; revision=124253
2009-01-22 21:25:42 +00:00
Marek Habersack 05e3bfbff1 new BuildManager change logs
svn path=/trunk/mcs/; revision=124189
2009-01-22 11:45:04 +00:00
Marek Habersack a6f295ebc2 Removed unused variables
svn path=/trunk/mcs/; revision=124185
2009-01-22 11:43:35 +00:00
Marek Habersack 9e483b3f69 Removed the suppressAutoRestart variable
svn path=/trunk/mcs/; revision=124184
2009-01-22 11:42:48 +00:00
Marek Habersack 61d6c015ec AssemblyBuilder.Units property is no longer used
svn path=/trunk/mcs/; revision=124182
2009-01-22 11:42:22 +00:00
Marek Habersack c7d0b1a773 Removed debugging code
svn path=/trunk/mcs/; revision=124180
2009-01-22 11:41:33 +00:00
Marek Habersack 86b4448d43 2009-01-22 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added System.Web - it now depends on
        System.Core, so it needs to be recompiled one more time after
        System.Core is done.

2009-01-22  Marek Habersack  <[email protected]>

        * System.Web.dll.sources: added
        System.Web.Compilation/BuildManagerCacheItem.cs,
        System.Web.Compilation/BuildManagerDirectoryBuilder.cs,
        System.Web.Compilation/BuildProviderGroup.cs

        * Makefile (SYSTEMCORE_DEP): added. Defines SYSTEMCORE_DEP on the
        mcs command line when System.Core is present.
        Added the DEVEL define, which defines DEVEL on the mcs command
        line. This is used to conditionally compile development helper code in
        System.Web.Util.FileUtils (and possibly other stuff later on)

2009-01-22  Marek Habersack  <[email protected]>

        * XsdBuildProvider.cs: added missing BuildProviderAppliesTo
        attribute.

        * BuildProvider.cs: added new internal virtual method,
        ExtractDependencies() whose purpose is to extract virtual path
        dependencies without compiling the code, if possible.
        
        * TemplateBuildProvider.cs: implemented the new
        ExtractDependencies () method which uses regular expressions to
        extract file dependencies from the source without having to
        compile the file.

        * CompilationException.cs: added a new public property, Results,
        which returns the compilation results.

        * BuildProviderGroup.cs: added. A simple class descending from
        List <BuildProvider> which is used to hold a compilation batch -
        that is a collection of BuildProvider instances.

        * BuildManagerDirectoryBuilder.cs: new class which takes care of
        generating compilation batches for the requested virtual path. A
        set of batches is generated from files found in the same virtual
        directory as the requested virtual path and all of the
        dependencies of those files. All files are grouped in batches
        within which no file depends upon its siblings. An attempt is made
        to sort the batches from the "least dependent" to the "most
        dependent" batches - i.e. the batches which do not depend on other
        batches go to the top.
        Code generating the batches now correctly detects dependency loops
        and throws an exception when one is encountered.
        Batches are represented as instances of a new class -
        BuildProviderGroup.

        * BuildManagerCacheItem.cs: added. Contains all the compilation
        result information needed by BuildManager. See below.

        * BuildManager.cs: complete batch building rewrite:
         - only one build lock is held instead of a set of compilation
           tickets. Only one thread can compile anything at one given
           time.
         - retrieving types from the build cache now uses a slim rw lock,
           so that readers aren't blocked while compilation is in
           progress. Writer lock is acquired only when adding a newly
           compiled type to the build cache and when removing it after its
           dependencies made it invalid.
         - assembly references for each compilation are now collected
           dynamically as the source is being compiled, this removed a lot
           of complexity in dealing with assembles containing conflicting
           types. As a consequence right now there may exist several
           loaded assemblies containing the same type, but only the latest
           of them will be used in new compiles.
         - the thread compiling code can recurse into the Build method
           which causes the recursively referenced code to be compiled
           into a separate, uniquely named, assembly. This deals with all
           recursion loops and dependency problems.
         - automatic app domain restart after a certain number of compiles
           is enabled now.
         - improved compilation error handling. If a compilation error
           occurs, the code attempts to recompile the assembly up to 3
           times, each time removing from the batch the files/virtual
           paths which failed parsing/compilation. If the attempts failed,
           another one is made to compile only the virtual path requested
           by the calling code. Only should that fail a compilation
           exception is thrown. All the compilation errors are written to
           stdout if the application is in the debug mode.
         - changed assembly naming. It now generates assembly names based
           on whether the compilation is recursive and whether the batch
           being compiled contains more than one code unit or
           not.
         - compilation results are now stored in the cache as instances of
           the new BuildManagerCacheItem class, which contains all the
           information required by BuildManager to return types,
           assemblies, dependencies etc.
         - GetReferencedAssemblies now correctly returns only the
           assemblies defined in the .config files.
         - GetVirtualPathDependencies does not need to compile code
           anymore in order to extract virtual path dependencies. New code
           in BuildProvider.ExtractDependencies () takes care of that.
         - a BuildManagerDirectoryBuilder class instance is used to
           generate compilation batches.

        * AssemblyBuilder.cs: added support for keeping track of which
        code unit was generated by which BuildProvider andr which
        BuildProvider produced a given source file. Both changes serve the
        purpose of dealing with compilation errors in BuildManager.

        * ApplicationFileBuildProvider.cs: added missing
        BuildProviderAppliesTo attribute

2009-01-22  Marek Habersack  <[email protected]>

        * FileUtils.cs: added two conditionally compiled methods (they
        require DEVEL to be defined) which output lines to a log file.

2009-01-22  Marek Habersack  <[email protected]>

        * WebTest.cs: Run () sets the internal field
        BuildManager.suppressDebugModeMessages to true.

2009-01-22  Marek Habersack  <[email protected]>

        * Web.mono.config: added numRecompilesBeforeAppRestart attribute
        to the compilation element, set to 100000, to avoid appdomain
        restarts during tests.



svn path=/trunk/mcs/; revision=124179
2009-01-22 11:40:22 +00:00
Marek Habersack 0f9e03caae 2009-01-14 Marek Habersack <[email protected]>
* AspGenerator.cs: implemented a work around which allows the
	server controls embedded in client tag attributes to be parsed and
	compiled.

svn path=/trunk/mcs/; revision=123397
2009-01-14 19:30:43 +00:00
Marek Habersack 3fcbf0735a 2009-01-13 Marek Habersack <[email protected]>
* CodeBuilder.cs, RootBuilder.cs, CollectionBuilder.cs: updates
	related to ControlBuilder cleanup.

	* ControlBuilder.cs: code cleanup - no field should be visible
	outside the class unless it's a constant or a read-only field.

2009-01-13  Marek Habersack  <[email protected]>

	* XmlBuilder.cs: updates related to ControlBuilder cleanup.

2009-01-13  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
	GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
	ControlBuilder cleanup.


svn path=/trunk/mcs/; revision=123229
2009-01-13 18:38:18 +00:00
Marek Habersack ef3c1e2428 2009-01-12 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not generate #line pragmas for
	plain strings. Fixes bug #461214

svn path=/trunk/mcs/; revision=123141
2009-01-12 22:27:08 +00:00
Marek Habersack 6e8c180f09 Reverted r123106
svn path=/trunk/mcs/; revision=123113
2009-01-12 19:42:35 +00:00
Marek Habersack dbd6e55cdc 2009-01-12 Marek Habersack <[email protected]>
* LiteralStringControlBuilder.cs: added. Fixes bug #461214

	* ControlBuilder.cs: added location tracking for literal string
	children. Fixes bug #461214

	* TemplateParser.cs: line pragmas are on by default. Fixes bug
	#460479

2009-01-12  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: the LiteralStringControlBuilder
	class is now used to track the location of the plain strings being
	output to the generated code. Fixes bug #461214

	* AspGenerator.cs: AppendLiteralString is called with the current
	parser location as one of its parameters in FlushText (). Fixes
	bug #461214

2009-01-12  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.UI/LiteralStringControlBuilder.cs


svn path=/trunk/mcs/; revision=123106
2009-01-12 18:53:41 +00:00
Gonzalo Paniagua Javier c79405a7c0 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122118
2008-12-25 07:38:51 +00:00
Marek Habersack 8b9adb2940 2008-12-11 Marek Habersack <[email protected]>
* TemplateParser.cs: in the 2.0 profile when a custom control is
	registered, do not compile it right away but store the tag name in
	a registry to be compiled at a later stage.

2008-12-11  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: added a new method, InitializeType, to be
	overriden in child classes when any class initialization needs to
	be performed before methods, constructors and fields are created.

	* TemplateControlCompiler.cs: if the parser has any custom
	controls registered, compile them here - in the InitializeType
	method.

svn path=/trunk/mcs/; revision=121262
2008-12-10 23:45:04 +00:00
Marek Habersack d0135f374d 2008-12-10 Marek Habersack <[email protected]>
* MasterPageParser.cs: do not compile anything while
	parsing. MasterType virtual path is not compiled, but stored for
	later. It is compiled when the MasterType property is requested
	from within MasterPageCompiler.

	* PageParser.cs: do not compile anything while
	parsing. MasterPageFile, MasterType and PreviousPageType virtual
	paths aren't compiled but checked for existence and stored for
	later. Actual compilation happens when the MasterType and
	PreviousPageType are requested from within PageCompiler.

	* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.

2008-12-10  Marek Habersack  <[email protected]>

	* ParseException.cs: made serializable.

	* PageCompiler.cs: CreateStronglyTypedProperty calls
	AddReferencedAssembly to add type's assembly to the unit's
	references after the typed property has been created.

	* BaseCompiler.cs: added a new helper method,
	AddReferencedAssembly to be used whenever an assembly location
	needs to be added to the compilation unit's list after the parsing
	is done (e.g. when processing PreviousPageType or MasterPageType
	properties in PageParser)

2008-12-10  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/MissingMasterFile.aspx

	* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs

2008-12-10  Marek Habersack  <[email protected]>

	* NunitWebResources/MissingMasterFile.aspx: added

2008-12-10  Marek Habersack  <[email protected]>

	* PageParserTest.cs: added



svn path=/trunk/mcs/; revision=121181
2008-12-10 02:03:35 +00:00
Marek Habersack 2cc422baec 2008-12-08 Marek Habersack <[email protected]>
* NunitWebResources/ValidPropertyBind5.aspx: added

	* NunitWebResources/ReadWritePropertyControl.ascx: added a
	writable string property.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added another valid Bind
	expression test.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: use the correct regex match group
	index in SanitizeBindCall (), fixes bug #457011



svn path=/trunk/mcs/; revision=120988
2008-12-08 12:03:43 +00:00
Marek Habersack 8f1762b9d4 2008-12-05 Marek Habersack <[email protected]>
* BuildManager.cs: attempt to enter the compilation critical
	section with a timeout up to 3 times before giving up. This avoids
	deadlocks in situations where there are two virtual directores
	each containing user controls referencing user controls from the
	other directory.

svn path=/trunk/mcs/; revision=120861
2008-12-05 18:12:51 +00:00
Gonzalo Paniagua Javier f31d48405a 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: reset to the next character in a partial match in case
	of failure. Fixes bug #314688.

svn path=/trunk/mcs/; revision=120549
2008-12-02 23:53:50 +00:00
Marek Habersack 5d39b8a41c 2008-12-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
	instances to the ContentPlaceHolders collection when the
	placeholder is instantiated in the control build method, collect
	the ids and store them in ContentPlaceHolders inside the
	constructor. Fixes bug #449970
	For each content placeholder generate a public virtual property
	named "Template_PLACEHOLDERID", this is compatible with what .NET
	does.

	* BaseCompiler.cs: added new virtual method,
	AddStatementsToConstructor, which is called just before
	CreateConstructor returns.

2008-12-01  Marek Habersack  <[email protected]>

	* MasterPage.cs: use List <string> for ContentPlaceHolders instead
	of ArrayList.
	CreateMasterPage now directly accesses the ContentPlaceHolders as
	it is now a list of strings



svn path=/trunk/mcs/; revision=120353
2008-12-01 14:45:16 +00:00
Marek Habersack fa32fdf482 2008-11-25 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
	System.Web.Compilation/AspComponent.cs

2008-11-25  Marek Habersack  <[email protected]>

	* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
	registered control type.

	* TemplateControlParser.cs: AddControlImports () removed. Its
	functionality is now implemented in ControlBuilder.AddChild in a
	more elegant, fine grained and correct way.

	* TemplateParser.cs: replaced some "" with String.Empty

	* ControlBuilder.cs: AddChild now adds an import for child's
	namespace if the control being added has been registered in the
	web.config file. Possible fix for #447896 and #447898

	* PageParser.cs, MasterPageParser.cs: do not call
	AddControlImports, it no longer exists.

2008-11-25  Marek Habersack  <[email protected]>

	* AspComponentFoundry.cs: GetComponentType methods replaced with
	GetComponent returning an instance of AspComponent which fully
	describes the registered item. Components are cached, indexed by
	full tag name.

	* AspComponent.cs: added

svn path=/trunk/mcs/; revision=119893
2008-11-25 00:51:21 +00:00
Marek Habersack a77d9eca19 2008-11-21 Marek Habersack <[email protected]>
* CompilationException.cs: made serializable.

	* TemplateControlCompiler.cs: make the Bind regex stricter.
	When creating Eval expression from Bind, replace single quotes
	with double quotes. Fixes bug #447597
	When processing Bind expressions and the regex doesn't match,
	throw an exception.

2008-11-21  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/InvalidPropertyBind1.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind2.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind3.aspx
	Test/mainsoft/NunitWebResources/InvalidPropertyBind4.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind1.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind2.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind3.aspx
	Test/mainsoft/NunitWebResources/ValidPropertyBind4.aspx
	Test/mainsoft/NunitWebResources/ReadWritePropertyControl.ascx

	* Test/tools/web.config: disabled batch compilation and enabled
	debugging.

2008-11-21  Marek Habersack  <[email protected]>

	* HttpParseException.cs, HtmlizedException.cs: added
	deserialization constructor.

2008-11-21  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added simple data source for
	Bind tests.
	Added 8 tests for valid and invalid Bind expressions.

2008-11-21  Marek Habersack  <[email protected]>

	* Web.config, Web.mono.config: disabled batch compilation.

2008-11-21  Marek Habersack  <[email protected]>

	* NunitWebResources/WebLogin.config,
	NunitWebResources/WebControl.config: disabled batch compilation.

	* NunitWebResources/WebMapping.config: enabled debugging and
	disabled batch compilation.

	* NunitWebResources/InvalidPropertyBind1.aspx,
	NunitWebResources/InvalidPropertyBind2.aspx,
	NunitWebResources/InvalidPropertyBind3.aspx,
	NunitWebResources/InvalidPropertyBind4.aspx,
	NunitWebResources/ValidPropertyBind1.aspx,
	NunitWebResources/ValidPropertyBind2.aspx,
	NunitWebResources/ValidPropertyBind3.aspx,
	NunitWebResources/ValidPropertyBind4.aspx,
	NunitWebResources/ReadWritePropertyControl.ascx: added

	* MainsoftWebApp20/Web.config: disabled batch compilation

2008-11-21  Marek Habersack  <[email protected]>

	* Web.config: disabled batch compilation



svn path=/trunk/mcs/; revision=119673
2008-11-21 21:35:55 +00:00
Marek Habersack a2bad5bd17 2008-11-21 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make the Bind regex stricter.
	When creating Eval expression from Bind, replace single quotes
	with double quotes. Fixes bug #447597
	When processing Bind expressions and the regex doesn't match,
	throw an exception.

2008-11-21  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: in BindingContainerType if builder is a
	RootBuilder and no naming container is found, return typeof
	(Page). In the TemplateBuilder case return cb.ControlType, not
	this.ControlType.

svn path=/trunk/mcs/; revision=119661
2008-11-21 19:27:51 +00:00
Gonzalo Paniagua Javier a0a36f7fd1 revert. found a better fix
svn path=/trunk/mcs/; revision=119129
2008-11-18 07:13:50 +00:00
Gonzalo Paniagua Javier 0f5347e0e0 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: a corner case of the previous bug.


svn path=/trunk/mcs/; revision=119128
2008-11-18 06:33:06 +00:00
Gonzalo Paniagua Javier 11c6d9c570 2008-11-17 Gonzalo Paniagua Javier <[email protected]>
* AspTokenizer.cs: if there's a newline between the opening server tag
	and any other special character, treat the block as a code-render
	block.
	Bug #445889 fixed.


svn path=/trunk/mcs/; revision=119126
2008-11-18 04:14:41 +00:00
Marek Habersack 4f2fbd7c2b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: If BindingDirection of the parent 
        template builder is OneWay in
	RegisterBindingInfo, do not throw an exception but simply do not
	register the binding.

svn path=/trunk/mcs/; revision=118813
2008-11-14 02:08:45 +00:00
Marek Habersack 3b49c0ba8b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: treat Eval and Bind expressions as
	verbatim code. The only difference between the two is that in the
	latter case Bind is replaced with Eval in the output code. Fixes
	bug #444725

2008-11-14  Marek Habersack  <[email protected]>

	* DataBinder.cs: if Eval doesn't find the indicated property, try
	to find an indexer property on the object and use the expression
	value as its parameter. Fixes #444725

svn path=/trunk/mcs/; revision=118799
2008-11-14 00:41:03 +00:00
Marek Habersack f72034cb96 2008-10-29 Marek Habersack <[email protected]>
* BuildManager.cs: seal the internal classes.
	Remove unused BuildCacheItem.ValidBuild property.

svn path=/trunk/mcs/; revision=117364
2008-10-29 10:17:58 +00:00
Marek Habersack ef9c9e51ce Do not abuse the 'private' keyword
svn path=/trunk/mcs/; revision=116539
2008-10-20 17:37:54 +00:00
Marek Habersack f3bc4a2f46 Use UNIX line endings consistently
svn path=/trunk/mcs/; revision=116241
2008-10-17 15:26:06 +00:00
Marek Habersack 5ecf20ac0e 2008-10-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
	use PropertyInfo.CanWrite to check whether the property is
	writable anymore, it calls GetSetMethod (false) instead.

svn path=/trunk/mcs/; revision=115941
2008-10-16 00:04:47 +00:00
Marek Habersack 5bc1fc2fe1 2008-10-10 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: allow whitespace around parentheses 
	in the Bind and Eval expressions.

svn path=/trunk/mcs/; revision=115402
2008-10-10 00:15:16 +00:00
Marek Habersack 1923115250 2008-10-09 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added - a section for mono-specific
	settings.

2008-10-09  Marek Habersack  <[email protected]>

	* BuildManager.cs: if monoSettings section is found in the
	system.web section in web.config, use its contents to augment
	compiler configuration. Used to work around the issue reported in
	bug #433806

2008-10-09  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.Configuration_2.0/MonoSettingsSection.cs

svn path=/trunk/mcs/; revision=115337
2008-10-09 14:45:06 +00:00
Marek Habersack 332a1a151b 2008-10-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: templates must be instantiated even
	for builders which process children as properties.

svn path=/trunk/mcs/; revision=115217
2008-10-08 14:51:11 +00:00
Gonzalo Paniagua Javier eceef02fa9 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs: use CodeBase to get to the original assembly
	path because Location might point the the shadow copy. Bug #409646
	and others fixed.


svn path=/trunk/mcs/; revision=115151
2008-10-07 22:23:33 +00:00