Commit Graph
858 Commits
Author SHA1 Message Date
Sebastien Pouliot 43529e8ac0 2005-09-19 Sebastien Pouliot <[email protected]>
* SupportsEventValidationAttribute.cs: New attribute added in 2.0 RC.


svn path=/trunk/mcs/; revision=50237
2005-09-19 15:19:57 +00:00
Sebastien Pouliot 7836b64c9d 2005-09-19 Sebastien Pouliot <[email protected]>
* ControlBuilder.cs: Added BuildObject override for 2.0 profile.
	* TagPrefixAttribute.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level. Fixed checks on ctor.
	* TemplateBuilder.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* TemplateContainerAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* TemplateControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Fixed checks/exceptions. 
	Stubbed IFilterResolutionService for CAS testing.
	* TemplateControlParser.cs: Added LinkDemand and InheritanceDemand for
	AspNetHostingPermission with Minimal level.
	* TemplateParser.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* ThemeableAttribute.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level. Removed IDispose interface.
	* ToolboxDataAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Fixed IsDefaultAttribute 
	to work on both 1.x and 2.0 profiles.
	* Triplet.cs: Added LinkDemand and (only for 1.x) InheritanceDemand 
	for AspNetHostingPermission with Minimal level.
	* UserControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Stubbed 
	IFilterResolutionService for CAS testing.
	* UserControlControlBuilder.cs: Added LinkDemand and InheritanceDemand
	for AspNetHostingPermission with Minimal level.
	* ValidationPropertyAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* ValidatorCollection.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level.
	* WebResourceAttribute.cs: Removed extra ctor and added setter to 
	PerformSubstitution.
	* WebServiceParser.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.


svn path=/trunk/mcs/; revision=50230
2005-09-19 13:55:35 +00:00
Sebastien Pouliot 5021dda9b2 2005-09-15 Sebastien Pouliot <[email protected]>
* ParseChildrenAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Simplified Equals to avoid
	casting. Added new ctor and public fields (2.0). Changed 
	ChildControlType setter visibility to internal.
	* PartialCachingAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Added new ctor and 
	SqlDependency property (2.0).
	* PartialCachingControl.cs: Added LinkDemand and InheritanceDemand for
	AspNetHostingPermission with Minimal level.
	* PersistenceModeAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Simplified Equals to avoid
	casting.
	* PersistChildrenAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Simplified Equals to avoid 
	casting.
	* PropertyConverter.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level. Class is static in 2.0.
	* RootBuilder.cs: Added LinkDemand and, for 2.0, InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Class is no more sealed in
	2.0. Added new (2.0) BuiltObjects property.
	* SimpleWebHandlerParser.cs: Added LinkDemand and InheritanceDemand 
	for AspNetHostingPermission with Minimal level.
	* StateItem.cs: Added LinkDemand for AspNetHostingPermission with 
	Minimal level.
	* StateBag.cs: Added LinkDemand for AspNetHostingPermission with 
	Minimal level. Removed SetDirty() which was called (2.0) but did 
	nothing.
	* StaticPartialCachingControl.cs: Added LinkDemand and 
	InheritanceDemand for AspNetHostingPermission with Minimal level.


svn path=/trunk/mcs/; revision=50115
2005-09-15 22:58:35 +00:00
Sebastien Pouliot d3e07dd1e4 2005-09-15 Sebastien Pouliot <[email protected]>
* Html32TextWriter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Added new 2.0 properties
	(but the generated HTML doesn't use them).
	* HtmlTextWriter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* ImageClickEventArgs.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level.
	* LiteralControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Default Text is null.
	* LosFormatter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Stubbed new 2.0 ctor.
	* ObjectConverter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Obsoleted ctor for 2.0.
	* ObjectTagBuilder.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level. Added check for null id (HttpException).
	* Page.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Throw some HttpException 
	when no context is available.
	* Pair.cs: Added LinkDemand for AspNetHostingPermission with Minimal 
	level. InheritanceDemand too for 1.x.
	* PageParser.cs: Added LinkDemand for AspNetHostingPermission with 
	Minimal level.


svn path=/trunk/mcs/; revision=50093
2005-09-15 16:58:32 +00:00
Sebastien Pouliot 197375627a 2005-09-14 Sebastien Pouliot <[email protected]>
* DataBinder.cs: Added LinkDemand for AspNetHostingPermission with 
	Minimal level. Fixed some exceptions.
	* DataBindingCollection.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Added 2.0 method and 
	event.
	* DataBindingHandlerAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* DataBinding.cs: Added LinkDemand for AspNetHostingPermission with
	Minimal level. Simplified Equals (reduced casts).
	* DataBoundLiteralControl.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Implemented ITextControl
	for 2.0.
	* DesignerDataBoundLiteralControl.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* DesignTimeParseData.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level. Added new 2.0 properties.
	* DesignTimeTemplateParser.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Made class static and 
	stubbed missing methods (2.0).
	* EmptyControlCollection.cs: Added LinkDemand and InheritanceDemand 
	for AspNetHostingPermission with Minimal level. Changed Add* methods
	exceptions to HttpException.


svn path=/trunk/mcs/; revision=50067
2005-09-15 02:57:58 +00:00
Sebastien Pouliot c1cc7616df 2005-09-14 Sebastien Pouliot <[email protected]>
* AttributeCollection.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level.
	* BaseParser.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* BasePartialCachingControl.cs: Added LinkDemand and InheritanceDemand
	for AspNetHostingPermission with Minimal level.
	* CompiledTemplateBuilder.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* ConstructorNeedsTagAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* ControlBuilderAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Simplified Equals and 
	IsDefaultAttribute.
	* ControlBuilder.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* ControlCachePolicy.cs: Hided ctor and removed SupportsCaching setter
	* ControlCollection.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Fixed possible stack 
	overflow in Add* methods. Fixed CopyTo as we're not allocating the 
	array based on the number of items.
	* Control.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Fixed 2.0 signatures.
	* CssStyleCollection.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level.
	* IStyleSheet.cs: Fixed parameter orders (2.0).


svn path=/trunk/mcs/; revision=50041
2005-09-14 17:25:07 +00:00
Gonzalo Paniagua Javier 07dde69797 2005-09-10 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: default VS 2005 pages are compiled fine now.


svn path=/trunk/mcs/; revision=49848
2005-09-10 04:13:40 +00:00
Chris Toshok b904d28596 2005-09-07 Chris Toshok <[email protected]>
* MinimizableAttributeTypeConverter.cs: new class, whose existence
	we know about because of corcompare, and for whose implementation
	we have exclusively nunit to thank.


svn path=/trunk/mcs/; revision=49613
2005-09-07 05:58:31 +00:00
Chris Toshok 561e734531 2005-09-06 Chris Toshok <[email protected]>
* RootBuilder.cs (.cctor): doh, add all the new html controls
	here.


svn path=/trunk/mcs/; revision=49605
2005-09-07 01:40:10 +00:00
Chris Toshok 9c4b4ef61e 2005-08-31 Chris Toshok <[email protected]>
* DataSourceSelectArguments.cs (Empty): this is apparently,
	according to corcompare, a property, not a field.  go figure.
	(Equals): implement.
	(IsEmpty): remove all mention of it.


svn path=/trunk/mcs/; revision=49228
2005-08-31 23:02:09 +00:00
Chris Toshok 53bffa410c 2005-08-29 Chris Toshok <[email protected]>
* StateBag.cs (GetChar): add.


svn path=/trunk/mcs/; revision=49088
2005-08-29 19:50:35 +00:00
Chris Toshok 772c6dd121 2005-08-28 Chris Toshok <[email protected]>
* Page.cs: more random corcompare work.
	(PageAdapter): implement.


svn path=/trunk/mcs/; revision=49012
2005-08-28 06:41:51 +00:00
Chris Toshok 3702c87de5 2005-08-28 Chris Toshok <[email protected]>
* Page.cs (.ctor): set our initial ID to "__Page".
	(SmartNavigation): obsolete in 2.0.
	(FindControl): new implementation.  Just check our own ID against
	the control we're looking for.  otherwise pass it along to
	base.FindControl.
	(GetPostBackClientHyperlink): obsolete in 2.0.


svn path=/trunk/mcs/; revision=49010
2005-08-28 06:25:40 +00:00
Chris Toshok 0ab3a0ccac 2005-08-28 Chris Toshok <[email protected]>
* ClientScriptManager.cs: public sealed in 2.0

	* IAdaptableTextWriter.cs: new 2.0 interface.

	* IHierarchyData.cs: fix return type for GetParent.


svn path=/trunk/mcs/; revision=49009
2005-08-28 06:22:13 +00:00
Chris Toshok f58121b1cf 2005-08-28 Chris Toshok <[email protected]>
* Pair.cs: mark serializable and sealed in 2.0.


svn path=/trunk/mcs/; revision=48998
2005-08-28 04:18:12 +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
Eyal Alalouf e63d83dd7e Use class instead of struct in HtmlTextWriter.cs under TARGET_JVM for better perf.
svn path=/trunk/mcs/; revision=47657
2005-07-25 14:50:43 +00:00
Gonzalo Paniagua Javier acecd62bb1 2005-07-24 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: if there are no commas in the assembly name, just
	LoadWithPartialName, as Load will throw.


svn path=/trunk/mcs/; revision=47617
2005-07-24 20:32:12 +00:00
Eyal Alalouf 127a437246 Making simple web app work with Grasshopper.
svn path=/trunk/mcs/; revision=47606
2005-07-24 15:49:31 +00:00
Eyal Alalouf 888ced3393 TARGET_J2EE compilation & integration fixes.
svn path=/trunk/mcs/; revision=47422
2005-07-19 17:16:26 +00:00
Eyal Alalouf ac15f08617 TARGET_J2EE compilation & integration fixes.
svn path=/trunk/mcs/; revision=47417
2005-07-19 16:28:02 +00:00
Gonzalo Paniagua Javier 42c9d92f48 2005-07-13 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: create the style collection if it wasn't
	created before Add ("style"...).


svn path=/trunk/mcs/; revision=47274
2005-07-13 16:23:35 +00:00
Gonzalo Paniagua Javier 2e3f1b094c 2005-07-12 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: when the key added is 'style', use the style
	collection.


svn path=/trunk/mcs/; revision=47242
2005-07-12 22:11:12 +00:00
Gonzalo Paniagua Javier c06c348cce 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* Page.cs:
	* Control.cs: avoid the creation of the EventHandlerList and accessing 
	to it whenever possible. Fix ENABLE_THEMING constant.


svn path=/trunk/mcs/; revision=46489
2005-06-25 08:45:10 +00:00
Gonzalo Paniagua Javier e12fa933ec 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs:
	* TemplateControlParser.cs:
	* UserControlParser.cs: detect circular references when a control tries
	to register itself as a tag. Fixes bug #75376.


svn path=/trunk/mcs/; revision=46488
2005-06-25 04:54:53 +00:00
Gonzalo Paniagua Javier 78b524222f 2005-06-14 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs: don't try to compile the master page if it wan't
	provided. Use MapPath from the base classes instead of the long
	version. Fixes bug #75269 that prevented xsp2 from working properly.


svn path=/trunk/mcs/; revision=46006
2005-06-15 03:16:20 +00:00
Lluis Sanchez d2c9dd8b5a 2005-06-13 Lluis Sanchez Gual <[email protected]>
* MasterPage.cs: Clear the default content of placeholders before
	adding the page content. Fixes bug #75193.


svn path=/trunk/mcs/; revision=45886
2005-06-13 17:16:14 +00:00
Lluis Sanchez f3846ab1a8 2005-06-13 Lluis Sanchez Gual <[email protected]>
* PageParser.cs: Added MasterType property. Get the type from the
	MasterType directive.
	* MasterPageParser.cs: Added GetCompiledMasterType method.


svn path=/trunk/mcs/; revision=45884
2005-06-13 16:55:11 +00:00
Gonzalo Paniagua Javier a74626e554 2005-06-08 Gonzalo Paniagua Javier <[email protected]>
* UserControl.cs:
	* Page.cs:
	* Control.cs: updates for 1.1 SP1


svn path=/trunk/mcs/; revision=45623
2005-06-08 08:28:36 +00:00
Lluis Sanchez 57030512c9 2005-06-06 Lluis Sanchez Gual <[email protected]>
* Control.cs: Added new DataBind() overload for 2.0. The old
	method calls this new overload.


svn path=/trunk/mcs/; revision=45480
2005-06-06 11:29:34 +00:00
Gonzalo Paniagua Javier 95e8e8d29f 2005-06-04 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ignore empty assembly.Location for in-memory
	generated assemblies.


svn path=/trunk/mcs/; revision=45422
2005-06-04 21:48:28 +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 270cf818cf 2005-05-26 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: html-encode attribute values. Fixes
	bug #73771.


svn path=/trunk/mcs/; revision=45083
2005-05-26 22:52:52 +00:00
Lluis Sanchez 8b572eb97f 2005-05-26 Lluis Sanchez Gual <[email protected]>
* DataSourceView.cs: Fix api.
	* NonVisualControlAttribute.cs: Implemented.
	* IDataItemContainer.cs: Added missing properties.
	* Control.cs: Added new EnableTheming and SkinID properties.
	* HierarchicalDataSourceControl.cs: Implemented missing methods.


svn path=/trunk/mcs/; revision=45061
2005-05-26 16:16:29 +00:00
Lluis Sanchez 5adec6fc95 2005-05-13 Lluis Sanchez Gual <[email protected]>
* ControlCollection.cs: Added internal setter for ReadOnly.


svn path=/trunk/mcs/; revision=44498
2005-05-13 13:52:46 +00:00
Geoff Norton d9cfac0a01 2005-05-09 Geoff Norotn <[email protected]>
* TemplateParser.cs: Silently remove the CodeFile attribute that ASP.NET 2.0
	uses instead of codebehind.


svn path=/trunk/mcs/; revision=44333
2005-05-10 16:19:33 +00:00
Gonzalo Paniagua Javier 649db79ee3 2005-05-08 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: as setting CurrentCulture is slow, don't set it if the
	culture has not changed since before the page started processing.


svn path=/trunk/mcs/; revision=44231
2005-05-09 01:00:49 +00:00
Gonzalo Paniagua Javier 96648cd4da 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: LoadWithPartialName returns null if the assembly is
	not found.


svn path=/trunk/mcs/; revision=44171
2005-05-06 20:41:34 +00:00
Gonzalo Paniagua Javier fda4d5e011 2005-04-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs:
	* SimpleWebHandlerParser.cs: removed values assigned and neved used.


svn path=/trunk/mcs/; revision=43568
2005-04-26 00:07:06 +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
Lluis Sanchez ed864d1503 2005-04-22 Lluis Sanchez Gual <[email protected]>
* ClientScriptManager.cs: Use a linked list instead of a Hashtable
	to store the scripts. In this way, scripts will be rendered in the
	same order as they have been registered. It shouldn't be slower
	since pages don't have many scripts.


svn path=/trunk/mcs/; revision=43435
2005-04-22 10:51:16 +00:00
Lluis Sanchez 6ac456e2f8 2005-04-21 Lluis Sanchez Gual <[email protected]>
* IEditableTextControl.cs: Implemented.
	* DataBinder.cs: Marked constructor as obsolete in 2.0.
	In GetDataItem, check for the IDataItemContainer interface
	in the container.
	* TemplateControl.cs: Improved check for data item.


svn path=/trunk/mcs/; revision=43409
2005-04-21 16:14:16 +00:00
Gonzalo Paniagua Javier 6e6c720109 2005-04-21 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: we still need LoadWithPartialName if Load fails.
	* Page.cs: ensure _requiresPostBack is emptied if we didn't have a copy
	for second postback.


svn path=/trunk/mcs/; revision=43385
2005-04-21 08:39:59 +00:00
Rafael Teixeira 4f5e5bed29 2005-04-20 Rafael Teixeira <[email protected]>
* TemplateParser.cs: Adding support for Strict/Explicit attributes 
	for @Page/@Control directives as documented at 
	http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconControlDirective.asp.
	First step don't choke on them. Fixing #74671


svn path=/trunk/mcs/; revision=43351
2005-04-20 18:03:44 +00:00
Gonzalo Paniagua Javier ca83814e7d 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: use Load instead of LoadWithPartialName. That was
	there from the time when Load wasn't working properly. First part of the
	fix to 74500.


svn path=/trunk/mcs/; revision=43311
2005-04-20 05:48:20 +00:00
Lluis Sanchez 00d1ac7d6d 2005-04-15 Lluis Sanchez Gual <[email protected]>
* ControlBuilder.cs: The BindingContainerType property happens
	to exist in 2.0, so I made it public. Added ParentTemplateBuilder,
	which is used to get the binding container that is managing
	the current two-way binding context.
	* TemplateBuilder.cs: Added some methods and an internal class
	to support two-way bindings.
	* CompiledBindableTemplateBuilder.cs: Implemented.
	* IBindableTemplate.cs: This interface inherits from ITemplate.


svn path=/trunk/mcs/; revision=43073
2005-04-15 20:41:11 +00:00
Lluis Sanchez 3a6d4aec24 2005-04-14 Lluis Sanchez Gual <[email protected]>
* ControlBuilder.cs: Added BindingContainerType property,
	which works like NamingContainerType but takes into account
	template builders with a specific container type (specified
	using the TemplateContainerAttribute.
	* StateManagedCollection.cs: Reimplemented Save/Load view
	state methods. The existing implementation was not correct
	in all cases.


svn path=/trunk/mcs/; revision=42996
2005-04-14 12:22:26 +00:00
Lluis Sanchez dba8d4148d 2005-04-08 Lluis Sanchez Gual <[email protected]>
* DataSourceView.cs: Added null check.


svn path=/trunk/mcs/; revision=42708
2005-04-08 21:27:41 +00:00
Lluis Sanchez bbdbfabccf 2005-04-07 Lluis Sanchez Gual <[email protected]>
* TemplateControl.cs:
	* Page.cs: Moved Eval and XPath from Page
	to TemplateControl.
	* StateManagedCollection.cs: Avoid saving null state.


svn path=/trunk/mcs/; revision=42645
2005-04-07 16:00:05 +00:00
Lluis Sanchez cbc89ca56a 2005-04-01 Lluis Sanchez Gual <[email protected]>
* DataSourceView.cs: Rethrow exceptions not handled by operation
	callbacks.
	* ITextControl.cs: Removed event.
	* CollectionBuilder.cs: Don't crash when a collection has more
	than one indexer.


svn path=/trunk/mcs/; revision=42468
2005-04-01 17:29:02 +00:00