Commit Graph
584 Commits
Author SHA1 Message Date
Chris Toshok 800a78cd46 2006-02-07 Chris Toshok <[email protected]>
* TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
	calls to AddParsedSubObject to a special statement collection --
	builder.flushOutputStatements -- not to builder.method.Statements.
	(InitMethod): initially, set flushOutputStatements to
	method.Statements.  If we're dealing with a ContentPlaceHolder,
	set flushOutputStatements to be the else block of a conditional we
	create.  This causes the compiled control to fall back to the
	ContentPlaceHolder's child controls in case there's no
	corresponding Content template.

	* PageCompiler.cs (CreatePropertyAssign): factor out the
	string,string implementation and add one that also takes a
	CodeExpression; make the string,string implementation call the
	three arg one with thisRef.
	(AddStatementsToInitMethod): make use of the 3-arg form of
	CreatePropertyAssign to reduce code.  Also, add support for
	setting the page's Title from the parser's Title.


svn path=/trunk/mcs/; revision=56635
2006-02-07 20:10:07 +00:00
Chris Toshok e210711eea 2006-02-07 Chris Toshok <[email protected]>
* UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
	assign __ctrl.MasterPageFile to our master page, if we have one.

	* PageCompiler.cs (CreateContructor): remove the MasterPageFile
	assignment from here.
	(AddStatementsToInitMethod): and move it here.
	
	* TemplateControlCompiler.cs (InitMethod): in the case where
	builder is a RootBuilder (we're building the __BuildControlTree
	method), call a virtual method so that subclasses can add their
	own statements to the method (used by both Page and MasterPage);
	Also, in the RootBuilder case, the argument should be the
	parser.ClassName type (the class we're building); lastly, expand
	the ContentPlaceHolder logic to include all the
	ContentTemplates/InstantiateIn magic.
	(AddStatementsToInitMethod): empty virtual method.
	(AddContentTemplateInvocation): ContentControlBuilder ->
	ContentControlBuilderInternal.
	(CreateControlTree): same.
	(CallBaseFrameworkInitialize): new function, create call to
	base.FrameworkInitialize.
	(CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.


svn path=/trunk/mcs/; revision=56619
2006-02-07 16:48:02 +00:00
Gonzalo Paniagua Javier 279b210196 forgot
svn path=/trunk/mcs/; revision=56593
2006-02-06 19:53:42 +00:00
Chris Toshok 34e0a74a38 2006-02-01 Chris Toshok <[email protected]>
* WebServiceCompiler.cs: CONFIGURATION_2_0 => NET_2_0, and use
	GetSection instead of GetWebApplicationSection.

	* CachingCompiler.cs: same.

	* AspGenerator.cs: same.

	* BaseCompiler.cs: same.


svn path=/trunk/mcs/; revision=56410
2006-02-01 19:46:13 +00:00
Gonzalo Paniagua Javier a1a092185a 2006-01-23 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: ignore 'thead'. Fixes bug #77326.


svn path=/trunk/mcs/; revision=55958
2006-01-23 20:26:55 +00:00
Chris Toshok 24beaecdf6 2006-01-22 Chris Toshok <[email protected]>
* IgnoreFileBuildProvider.cs: build provider which does nothing.


svn path=/trunk/mcs/; revision=55922
2006-01-23 02:14:27 +00:00
Chris Toshok 1e544a7382 2006-01-22 Chris Toshok <[email protected]>
* AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
	Hashtable ctor to silence a couple of warning.
	(CompoundFoundry.ctor): same

	* Directive.cs (InitHash): use a 2.0 friendly form of the
	Hashtable ctor to silence a couple of warning.

	* TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
	Hashtable ctor to silence a warning.
	(GetDictionary): same.


svn path=/trunk/mcs/; revision=55913
2006-01-22 20:45:53 +00:00
Chris Toshok 0bd4166bb7 2006-01-22 Chris Toshok <[email protected]>
* AppSettingsExpressionBuilder.cs: implement this, patterning it
	after an example on msdn.  Also, enable the ExpressionEditor
	attribute, but use the string rather than the Type overload so we
	won't have yet another circular dep.

	* ConnectionStringsExpressionBuilder.cs: partial implementation.
	Same deal with the ExpressionEditor attribute.

	* ResourceExpressionBuilder.cs: same deal with the
	ExpressionEditor attribute.


svn path=/trunk/mcs/; revision=55907
2006-01-22 18:46:10 +00:00
Chris Toshok c80bafcadf 2006-01-20 Chris Toshok <[email protected]>
* ResourceExpressionBuilder.cs (ParseExpression): implement.

	* ResourceExpressionFields.cs: implement.


svn path=/trunk/mcs/; revision=55874
2006-01-21 04:38:53 +00:00
Chris Toshok 0017cc485c 2006-01-20 Chris Toshok <[email protected]>
* ClientBuildManagerParameter.cs: implement.


svn path=/trunk/mcs/; revision=55872
2006-01-21 01:17:34 +00:00
Chris Toshok af5518950d 2006-01-20 Chris Toshok <[email protected]>
* ClientBuildManagerCallback.cs: this class contains an empty
	default implementation.


svn path=/trunk/mcs/; revision=55869
2006-01-21 00:56:53 +00:00
Gonzalo Paniagua Javier 06fd65ab17 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: add support for 'src' in <script runat="server">.
	Fixes bug #77150.


svn path=/trunk/mcs/; revision=55353
2006-01-10 23:15:18 +00:00
Chris Toshok 25d99e72d6 2006-01-04 Chris Toshok <[email protected]>
* WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
	code.

	* AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.


svn path=/trunk/mcs/; revision=55042
2006-01-04 07:05:46 +00:00
Gonzalo Paniagua Javier a1d251548e 2005-12-06 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: fix yesterday's fix.


svn path=/trunk/mcs/; revision=53993
2005-12-06 17:15:42 +00:00
Gonzalo Paniagua Javier 092da6290a 2005-12-06 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: only do special processing for <script> if it has
	the runat="server" attribute. Fixes bug #76918.


svn path=/trunk/mcs/; revision=53971
2005-12-06 05:20:20 +00:00
Gonzalo Paniagua Javier 9eea35e3ab 2005-12-01 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: treat LightGrey as a synonym of LightGray.
	Fixes bug #76677.


svn path=/trunk/mcs/; revision=53803
2005-12-01 22:38:38 +00:00
Gonzalo Paniagua Javier 43c346d458 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: handle data bound attributes for html
	controls. Fixes bug #76785.


svn path=/trunk/mcs/; revision=53708
2005-11-30 21:36:52 +00:00
Chris Toshok 994d85ecc4 2005-11-28 Chris Toshok <[email protected]>
* CachingCompiler.cs (Compile): CONFIGURATION_2_0 work.

	* BaseCompiler.cs (GetCompiledType): CONFIGURATION_2_0 work.


svn path=/trunk/mcs/; revision=53584
2005-11-28 20:59:45 +00:00
Gonzalo Paniagua Javier 20945d5091 2005-11-22 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: fixed caching for web handlers.


svn path=/trunk/mcs/; revision=53375
2005-11-23 00:30:55 +00:00
Gonzalo Paniagua Javier 519a23a51c 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: don't change case for verbatim IDs.
	Fixes bug #76657.


svn path=/trunk/mcs/; revision=53325
2005-11-21 21:34:42 +00:00
Gonzalo Paniagua Javier d219c37e5c 2005-09-23 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: when processing verbatim input, throw if we reach EOF
	before the expected end of the data.


svn path=/trunk/mcs/; revision=50563
2005-09-23 07:05:30 +00:00
Gonzalo Paniagua Javier c4384c9209 2005-09-22 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: 
	* WebServiceCompiler.cs: when caching a type loaded from an assembly
	that we didn't compile, make it depend on the file itself, not on a
	non-existing cache key. This problem affected performance of web
	services and .ashx, making unnecessary extra calls to LoadFrom every
	time the cache was cleared.


svn path=/trunk/mcs/; revision=50542
2005-09-23 00:08:24 +00:00
Gonzalo Paniagua Javier 406046118e 2005-09-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Hosting/ApplicationHost.cs:
	* System.Web.Compilation/BaseCompiler.cs: set the domain's DynamicBase
	property instead of guessing it in BaseCompiler.


svn path=/trunk/mcs/; revision=49847
2005-09-10 04:04:11 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Gonzalo Paniagua Javier 549563ff5e 2005-08-18 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: apply the same fix as in r45440 that fixed bug
	75146 for pages/controls.


svn path=/trunk/mcs/; revision=48521
2005-08-18 20:32:55 +00:00
Eyal Alalouf 1f70d33b5d Added servlet binding for the Grasshoper J2EE configuration.
svn path=/trunk/mcs/; revision=47392
2005-07-18 16:29:25 +00:00
Gonzalo Paniagua Javier 8d1b41006b 2005-07-11 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: in these cases, we're only interested in
	public properties/fields, not protected.


svn path=/trunk/mcs/; revision=47189
2005-07-11 22:20:52 +00:00
Gonzalo Paniagua Javier f2071e23e9 2005-06-26 Gonzalo Paniagua Javier <[email protected]>
* TagAttributes.cs:
	* AspParser.cs:
	* TemplateControlCompiler.cs: use invariant culture versions of starts/
	endswith.


svn path=/trunk/mcs/; revision=46532
2005-06-27 01:23:02 +00:00
Gonzalo Paniagua Javier 8db75a99ce 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: comparison between member name and the
	first part of the id provided by the user should also be
	case-insensitive. Fixes bug #75379.


svn path=/trunk/mcs/; revision=46511
2005-06-26 03:35:01 +00:00
Gonzalo Paniagua Javier 4886fe7a8d 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: use cache.InsertPrivate.
	* AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
	AddDependency.


svn path=/trunk/mcs/; revision=46508
2005-06-25 20:47:41 +00:00
Gonzalo Paniagua Javier 46a422a85a 2005-06-24 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: create the assemly in the DynamicBase directory,
	as all the others, when compiling an assembly from a Src file. Fixes
	bug #75371.


svn path=/trunk/mcs/; revision=46471
2005-06-24 08:03:03 +00:00
Gonzalo Paniagua Javier c0c90d0904 2005-06-15 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: if the property is not found, don't forget
	about trying the field.


svn path=/trunk/mcs/; revision=46022
2005-06-15 07:30:21 +00:00
Lluis Sanchez 2fee37b32b 2005-06-13 Lluis Sanchez Gual <[email protected]>
* Directive.cs: Register the MasterType directive.
	* PageCompiler.cs: If a MasterType is specified, add a type specific
	Master property. All this fixes bug #75192.


svn path=/trunk/mcs/; revision=45885
2005-06-13 16:55:35 +00:00
Gonzalo Paniagua Javier 37108a60c0 2005-06-11 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: when mapping an attribute name to a field
	or property name, there's no need to try with every property and field,
	but just the one found when searching by name (no case). There was one
	call to ProcessPropertiesAndFields per property or field until found,
	now only one if the property/field is found, none otherwise.


svn path=/trunk/mcs/; revision=45808
2005-06-11 21:17:03 +00:00
Gonzalo Paniagua Javier 0a8b8fb7d8 2005-06-11 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: allow more than 2 levels when looking for
	properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
	bug #75234.


svn path=/trunk/mcs/; revision=45807
2005-06-11 20:34:59 +00:00
Gonzalo Paniagua Javier 456c1baf05 2005-06-05 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs: when the OutputAssembly is null, we can still have
	the assembly file there and be able to load it. Thanks to Rogerio and
	Mark.


svn path=/trunk/mcs/; revision=45440
2005-06-05 17:08:25 +00:00
Gonzalo Paniagua Javier 019afeb1c5 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: InvariantCulture love.


svn path=/trunk/mcs/; revision=45419
2005-06-04 21:16:53 +00:00
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 2220fbdb70 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: tagnames have precedence over types in
	assemblies when they use the same prefix. Fixes bug #71855.


svn path=/trunk/mcs/; revision=44172
2005-05-06 20:58:11 +00:00
Lluis Sanchez 6bc6c79218 2005-05-03 Lluis Sanchez Gual <[email protected]>
* WebServiceCompiler.cs: Create the temp directory before
	creating the web service source code file.


svn path=/trunk/mcs/; revision=43951
2005-05-03 17:16:22 +00:00
Gonzalo Paniagua Javier 8569a7ab5c 2005-04-25 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration/CompilerCollection.cs: added CompareLanguages
	method.
	* System.Web.Compilation/AspGenerator.cs: when checking languages, try
	to match other aliases too (ie, 'cs' == 'c#').


svn path=/trunk/mcs/; revision=43567
2005-04-26 00:05:03 +00:00
Gonzalo Paniagua Javier 197f824568 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration/CompilationConfigurationHandler.cs: ensure
	TempDirectory is not empty before assigning it. Don't mangle the
	assembly names provided.

	* System.Web.Configuration/CompilationConfiguration.cs: use DynamicBase
	as the temp directory instead of Path.GetTempPath.

	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.UI/TemplateParser.cs: always get the location (full path)
	for assemblies, even the ones from the GAC.

	* System.Web.Compilation/BaseCompiler.cs: check that DynamicBase
	directory exists before creating the TempFileCollection.

	The changes related to assembly names fix bug number #74500.


svn path=/trunk/mcs/; revision=43462
2005-04-22 20:34:00 +00:00
Gonzalo Paniagua Javier 0aae8c8982 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: use a stack for non-server tags even before getting
	to a form. Fixes bug #70274.


svn path=/trunk/mcs/; revision=43427
2005-04-22 03:58:41 +00:00
Gonzalo Paniagua Javier abbae4f914 2005-04-22 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: don't error out on ill formed tags if it's not a server
	tag (ie, allow something like '<table align="left cellpadding="0">' to
	work, as MS does. Fixes bug #67909.


svn path=/trunk/mcs/; revision=43426
2005-04-22 03:37:26 +00:00
Rafael Teixeira fefa38d9db 2005-04-20 Rafael Teixeira <[email protected]>
* BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
	@Page/@Control directives to CodeDOM (VB.NET support)


svn path=/trunk/mcs/; revision=43356
2005-04-20 20:31:09 +00:00
Lluis Sanchez 4299c6c9e8 2005-04-19 Lluis Sanchez Gual <[email protected]>
* AspParser.cs: Fixed parsing of data binding tags in server
	tag attributes. Allow <%...%> blocks not assigned to
	attributes in client tags.
	* TagAttributes.cs: Make sure that data binding blocks in server
	tags are always assigned to attributes.

	* TemplateControlCompiler.cs: Implemented support for two-way
	binding.

svn path=/trunk/mcs/; revision=43277
2005-04-19 18:21:25 +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