22 Commits
Author SHA1 Message Date
Marek Habersack 5e9719f57c Gotten rid of NET_2_0 ifdefs and 1.1 code from System.Web.UI
svn path=/trunk/mcs/; revision=149929
2010-01-20 21:21:01 +00:00
Marek Habersack 5c59801fff Performance improvements:
- made sure invariant culture is used with String.ToLower, String.ToUpper and String.Compare
- replaced all calls to CultureInfo.InvariantCulture with a reference to a static field System.Web.Util.Helpers.InvariantCulture

svn path=/trunk/mcs/; revision=143587
2009-10-07 00:10:03 +00:00
Vladimir Krasnov cefc989dab * CssStyleCollection.cs: used ListDictionary instead of HybridDictionary as underlaying data structure
svn path=/trunk/mcs/; revision=83754
2007-08-09 14:00:19 +00:00
Marek Habersack 276306277b 2007-05-08 Marek Habersack <[email protected]>
* CssStyleCollection.cs: put the style in the bag each time a key
	is set, otherwise resetting of a key has no effect on rendered
	style.

svn path=/trunk/mcs/; revision=76930
2007-05-08 14:25:17 +00:00
Igor Zelmanovich 56b057452c 2007-05-03 Igor Zelmanovich <[email protected]>
* CssStyleCollection.cs: optimization:
	used StringBuilder instead string to hold value.
	When added key that not exists in collection, value is recalculated by 
	appending required key to existing value.	


svn path=/trunk/mcs/; revision=76619
2007-05-03 13:05:34 +00:00
Igor Zelmanovich 3eb00b979a 2007-03-12 Igor Zelmanovich <[email protected]>
* AttributeCollection.cs:
	* CssStyleCollection.cs: fixed: works w/o state bag.	

2007-03-12 Igor Zelmanovich <[email protected]>

	* Style.cs: optimization: used CssStyleCollection .ctor w/o parameters.	

svn path=/trunk/mcs/; revision=74108
2007-03-12 10:30:01 +00:00
Igor Zelmanovich 62cd905bc9 2006-10-22 Igor Zelmanovich <[email protected]>
* CssStyleCollection.cs:
	* AttributeCollection.cs:
	fixed: style collection is synchronized with style attribute 


svn path=/trunk/mcs/; revision=66874
2006-10-22 11:59:26 +00:00
Gonzalo Paniagua Javier 4fc8cf0966 2006-10-09 Gonzalo Paniagua Javier <[email protected]>
* CssStyleCollection.cs: don't clear the collection of properties, but
	create a new one.


svn path=/trunk/mcs/; revision=66437
2006-10-09 05:20:57 +00:00
Gonzalo Paniagua Javier 25bf84fad4 2006-10-06 Gonzalo Paniagua Javier <[email protected]>
* CssStyleCollection.cs: 'style' can be modified on our back, so build
	the style table every time instead of keeping one that is not in sync.
	Fixes bug #79587.


svn path=/trunk/mcs/; revision=66332
2006-10-06 05:40:59 +00:00
Igor Zelmanovich 5b2fd69968 fixed: background-image style attribute
svn path=/trunk/mcs/; revision=64858
2006-09-04 12:34:14 +00:00
Gonzalo Paniagua Javier 285d824d6a 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* System.Web_test.dll.sources: add new test.

	* System.Web.UI/AttributeCollection.cs: avoid code duplication and
	don't add "style" to the bag, or it will overwrite the settings made
	by CssStyleCollection.

	* System.Web.UI/CssStyleCollection.cs: make it throw where MS throws.
	Minimize the number of times we create the "style" string and take
	care of updating it for the AttributeCollection. FillStyle and
	BagToString are now private. One should use the 2.0 (internal in <2.0)
	Value property.

	* System.Web.UI.WebControls/Style.cs: avoid unnecesary creation of a
	CssStyleCollection and instead write the style attributes directly to
	the HtmlTextWriter.

	* System.Web.UI.WebControls/CheckBox.cs: adapted to new API.

	* DataGrid.cs: handle null data sources. Fixed the contions that make
	the table to be added to the Controls collection.

	* System.Web.UI.WebControls/Calendar.cs: the table needed an ID and the
	attributes from the parent. Also don't create the ControlStyleCollection
	if it has not already been created.


svn path=/trunk/mcs/; revision=50931
2005-09-28 08:05: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
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
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez d8b198c696 2004-12-20 Lluis Sanchez Gual <[email protected]>
* IStyleSheet.cs: Added missing "using".
	* Page.cs: Implemented Header property.
	* CssStyleCollection.cs: Made BagToString method internal.
	* RootBuilder.cs: Register HtmlHead control.
	

svn path=/trunk/mcs/; revision=37992
2004-12-20 18:47:52 +00:00
Lluis Sanchez 80ad04a1eb 2004-12-17 Lluis Sanchez Gual <[email protected]>
* CssStyleCollection.cs: Minor (!) fix.
	* HtmlTextWriter.cs: Register names for new 2.0 styles.


svn path=/trunk/mcs/; revision=37888
2004-12-17 17:43:35 +00:00
Lluis Sanchez 27c62abc49 2004-12-17 Lluis Sanchez Gual <[email protected]>
* CssStyleCollection.cs: Make it work as a standalone collection.
	* HtmlTextWriter.cs: Added static method for getting style names.


svn path=/trunk/mcs/; revision=37886
2004-12-17 15:58:52 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier 9ee5e0198a 2002-07-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/AttributeCollection.cs:
	(Add): handle 'style' through styleCollection.

	* System.Web.UI/CssStyleCollection.cs:
	(fillStyle): renamed to FillStyle and made it internal.

	* System.Web.UI/Page.cs:
	(GetViewStateString): fixed, broken after other recent changes.
	(ProcessPostData): allow a second try for postback data after OnLoad.
	(ProcessRequest): clear controls collection, removed call to
	UnloadRecursive.

	* System.Web.UI.HtmlControls/HtmlControl.cs: the attributes must use
	ViewState as its StateBag, if not style values are lost between
	postbacks.

	* System.Web.UI.WebControls/TextBox.cs: default for Wrap is true.
	(OnPreRender): don't save Text if there are no listeners on TextChanged.

svn path=/trunk/mcs/; revision=5954
2002-07-20 07:07:39 +00:00
Gonzalo Paniagua Javier d2e41bdda3 2002-07-17 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: fixed related to ViewState. Added RemovedControl.

	* ControlCollection.cs: notify owner of control removal.

	* CssStyleCollection.cs: almost rewritten to make it render the style
	attribute after changes to it.

	* Page.cs: follow the guidelines in 'Control execution lifecycle'.
	Removed Xml code.

	* StateBag.cs: don't use IDictionary.GetEnumerator on the
	HybridDictionary: it makes the program give an InvalidCastException at
	runtime. Why?

svn path=/trunk/mcs/; revision=5863
2002-07-17 16:07:33 +00:00
Gonzalo Paniagua Javier 8f35dc38ed 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.build: removed some more excludes.

	* System.Web.Hosting/AppDomainFactory.cs:
	* System.Web.Hosting/IAppDomainFactory.cs:
	* System.Web.Hosting/IISAPIRuntime.cs:
	* System.Web.Hosting/ISAPIRuntime.cs: make them compile.

	* System.Web.UI/AttributeCollection.cs: added CssStyleCollection.

	* System.Web.UI/CssStyleCollection.cs: use a StateBag instead of a
	Hashtable. Added internal .ctor.

	* System.Web.UI/DataBinding.cs: propertyType is a Type. Implemented
	Equals and GetHashCode.

	* System.Web.UI/DataBoundLiteralControl.cs:
	(LoadViewState):
	(SaveViewState): implemented.

	* System.Web.UI/Page.cs: FileDependencies is not public.

	* System.Web.UI/ParseChildrenAttribute.cs: give a value to Default.
	(GetHashCode):
	(Equals):
	(IsDefaultAttribute): implemented.

svn path=/trunk/mcs/; revision=5743
2002-07-12 19:19:55 +00:00
Duncan Mak b3976280ad 2002-05-17 Duncan Mak <[email protected]>
* System.Web.build: Added new arguments: "/noconfig",
	"/r:System.Drawing.dll" and "/r:System.Xml.dll".

	* AttributeCollection.cs:
	* ControlCollection.cs:
	* CssStyleCollection.cs:
	* DataBindingCollection.cs:
	* EmptyControlCollection.cs: Added missing Collection classes.

	* BaseParser.cs:
	* TemplateParser.cs:  Implemented. BaseParser is weird because
	there is no documentation on what it does.

	* ControlBuilder.cs:

	* DataBinder.cs:
	* DataBinding.cs: Added.

	* DataBoundLiteralControl.cs:
	* Triplet.cs: Added.

	* RenderMethod.cs: Added this delegate for Control.cs

svn path=/trunk/mcs/; revision=4726
2002-05-17 20:54:14 +00:00