Commit Graph
514 Commits
Author SHA1 Message Date
Chris Toshok ffcc362a42 2006-03-07 Chris Toshok <[email protected]>
* BaseCompiler.cs: fix typo in "initialize" in multiple places.
	(Init): move the CreateMethods call here.


svn path=/trunk/mcs/; revision=57669
2006-03-07 21:58:01 +00:00
Chris Toshok 9cd26e2c03 In System.Web.UI:
2006-03-02  Chris Toshok  <[email protected]>

	* Control.cs (ApplyStyleSheetTheme): remove the exception, and add
	a MonoTODO.

	* Page.cs (Theme): implement setter/getter.
	(StyleSheetTheme): same.
	
	* PageParser.cs (ProcessMainAttributes): parse the Theme and
	StyleSheetTheme attributes.

In System.Web.UI.WebControls:
2006-03-02  Chris Toshok  <[email protected]>

	* WebControl.cs (SkinID): implement setter/getter, and have them
	just chain up to base.SkinID.

In System.Web.Compilation:
2006-03-02  Chris Toshok  <[email protected]>

	* TemplateControlCompiler.cs (InitMethod): emit an assignment for
	SkinID just after the creation of our object, and right after that
	call "_ctrl.ApplyStyleSheetSkin (page)".
	(CreateAssignStatementsFromAttributes): split out the majority of
	this code to CreateAssignStatementFromAttribute, and change this
	method to simply a loop over the attribute keys.  In the 2.0 case,
	skip the SkinID property, since that's handled explicitly in
	InitMethod.

	* PageCompiler.cs (AddStatementsToInitMethod): emit assignments
	for Theme and StyleSheetTheme.


svn path=/trunk/mcs/; revision=57516
2006-03-02 19:30:08 +00:00
Chris Toshok a381748f0b oops
svn path=/trunk/mcs/; revision=57223
2006-02-23 23:19:16 +00:00
Chris Toshok 553bc8d055 In System.Web.Compilation:
2006-02-23  Chris Toshok  <[email protected]>

	* TemplateControlCompiler.cs (AddContentTemplateInvocation): track
	change from ContentControlBuilderInternal to
	ContentBuilderInternal.
	(AddCodeRender): same.

In System.Web.UI.WebControls:
	* CheckBox.cs, ContentControlBuilderInternal.cs, Content.cs,
	ContentPlaceHolderBuilder.cs, ContentPlaceHolder.cs,
	DataControlFieldHeaderCell.cs, DataGridColumn.cs,
	HierarchicalDataBoundControl.cs, HyperLinkField.cs,
	ImageButton.cs, ImageField.cs, Literal.cs,
	ObjectDataSourceView.cs, TextBox.cs: more corcompare work.


svn path=/trunk/mcs/; revision=57221
2006-02-23 23:04:09 +00:00
Gonzalo Paniagua Javier ca6da00798 2006-02-16 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs:
	* BuildManager.cs: compile the assembly from AssemblyBuilder and use
	GetGeneratedType() on the BuildProvider instead of loading the assembly
	and trying a wild guess at the type name.


svn path=/trunk/mcs/; revision=56964
2006-02-16 20:45:20 +00:00
Gonzalo Paniagua Javier f269a83e07 2006-02-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/WebHandlerParser.cs:
	* System.Web.UI/WebServiceParser.cs:
	* System.Web.UI/UserControlParser.cs:
	* System.Web.UI/PageParser.cs: added new ctor that uses a TextReader
	as input.

	* System.Web.UI/TemplateControlParser.cs: new Reader property.
	* System.Web.UI/SimpleWebHandlerParser.cs: new Reader property and
	ctor.

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

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateControlCompiler.cs: CreateMethods is
	now internal.

	* System.Web.Compilation/WebServiceBuildProvider.cs:
	* System.Web.Compilation/PageBuildProvider.cs:
	* System.Web.Compilation/UserControlBuildProvider.cs:
	* System.Web.Compilation/WebHandlerBuildProvider.cs: new build
	providers.

	* System.Web.Compilation/BuildProvider.cs: add assemblies.

	* System.Web.Compilation/BaseCompiler.cs: expose the provider and the
	compile unit through properties.

svn path=/trunk/mcs/; revision=56878
2006-02-14 22:02:15 +00:00
Gonzalo Paniagua Javier 6be4ffb621 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration_2.0/Compiler.cs:
	* System.Web.Configuration_2.0/CompilerCollection.cs: removed
	compatibility code.

	* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
	GetProviderForExtension().

	* System.Web.UI/IThemeResolutionService.cs: this is now added to the
	sources file, but some other stuff does not compile yet as the
	interface changed after the beta.

	* System.Web.UI/ObjectConverter.cs: removed extra attribute.

	* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.

	* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
	commented the 'good' stuff out, since other files need to be fixed
	too.

	* System.Web.dll.sources: add new files.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs: only
	compile these for pre-2.0 assemblies.

	* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
	comments/TODO.
	* System.Web.Hosting/HostingEnvironment.cs: initialize the
	default value for VirtualPathProvider.

	* System.Web.Compilation/CompilerType.cs: implemented.

	* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.

	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
	instance creation code.

	* System.Web.Compilation/ClientBuildManager.cs: implemented some of
	its methods. Not yet ready.

	* System.Web.Compilation/BuildManager.cs: the more interesting methods
	are implemented now.

	* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
	in case of error.

	* System.Web.Compilation/BuildProvider.cs: implemented the
	Get*Compiler* protected methods.


svn path=/trunk/mcs/; revision=56781
2006-02-10 23:43:09 +00:00
Chris Toshok 09e8f2a763 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.
	(AddChildCall): use methodStatements instead of method.Statements.
	(CreateControlTree): same.

	* 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=56639
2006-02-07 20:42:35 +00:00
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
Gonzalo Paniagua Javier 20f86819b0 2006-02-06 Gonzalo Paniagua Javier <[email protected]>
* IgnoreFileBuildProvider.cs: it's not public.
	* BuildProvider.cs: mostly implemented.


svn path=/trunk/mcs/; revision=56592
2006-02-06 19:53:15 +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 e09f36d130 oops. fix build.
svn path=/trunk/mcs/; revision=55914
2006-01-22 20:48:14 +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 a3a46ec81d stub out the 2.0 System.Web.Compilation stuff.
svn path=/trunk/mcs/; revision=55349
2006-01-10 22:29:39 +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 cc5d84d39d Patch by D. Moonfire that fixes several issues with 2.0 page attributes.
svn path=/trunk/mcs/; revision=54363
2005-12-14 15:49:16 +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