67 Commits
Author SHA1 Message Date
Alexander Köplinger a22bb15e6b [System.Web] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Alexander Köplinger d4d7374efc [bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
2015-01-21 17:18:30 +01:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Marek Habersack f2f50f05da 2010-07-15 Marek Habersack <[email protected]>
* PlaceHolder.cs, View.cs, WizardStepBase: added EnableTheming
	property

	* MultiViewControlBuilder.cs: added

More 2.0/4.0 metadata updates

svn path=/trunk/mcs/; revision=160448
2010-07-15 16:51:09 +00:00
Marek Habersack d8838a6414 This commit introduces a few 4.0 rendering changes which break some tests. The broken tests
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlParser.cs: added support for ClientIDMode
    	property

    	* Control.cs: implemented 4.0 features - ClientIDMode and
    	RenderingCompatibility.

    	* ClientIDMode.cs, IDataKeysControl.cs: added

    2010-07-02  Marek Habersack  <[email protected]>

    	* Menu.cs: 4.0 API updates.

    	* GridView.cs: implemented 4.0 properties -
    	SortedAscendingCellStyle, SortedAscendingHeaderStyle,
    	SortedDescendingCellStyle, SortedDescendingHeaderStyle,
    	ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
    	along with associated rendering changes.

    	* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
    	renamed ShowPage to SetPageIndex and made it public.
    	Added 4.0 interfaces to inheritance list and implemented them.

    	* DataKeyArray.cs: added internal constructor which accepts IList
    	instead of ArrayList. Changed the 'keys' field type to IList.

    	* ContainedTable.cs: the 'id' attribute must be rendered last.

    	* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
    	TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.

    	* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
    	Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
    	Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
    	added new 4.0 property, SupportsDisabledAttribute.

    2010-07-02  Marek Habersack  <[email protected]>

    	* VersionConverter.cs: added support for checking whether the
    	passed version is equal or more than a specified minimal version.

    	* PagesSection.cs: added two 4.0 properties - ClientIDMode and
    	ControlRenderingCompatibilityVersion

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
    	property

    	* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
    	must call the base implementation.

svn path=/trunk/mcs/; revision=159826
2010-07-02 19:12:31 +00:00
Marek Habersack 883b592eb0 2009-02-06 Marek Habersack <[email protected]>
* Style.cs: if CssClass is null, return String.Empty. Fixes bug
	#473303
	Added a range check to the BorderStyle property.

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

	* StyleTest.cs: added tests for CssClass and BorderStyle.
	Renamed the Style_CssClass method to Style_RegisteredCssClass.

svn path=/trunk/mcs/; revision=126051
2009-02-06 15:06:18 +00:00
Marek Habersack b830b7548b 2008-12-01 Marek Habersack <[email protected]>
* Style.cs: WriteStyleAttributes must not use the fontinfo field
	directly, it has to be done via the Font property. Fixes bug
	#449793

svn path=/trunk/mcs/; revision=120345
2008-12-01 12:34:45 +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
Vladimir Krasnov c15337098f * Style.cs: performance optimization: suppress finalizer added
svn path=/trunk/mcs/; revision=89919
2007-11-19 09:33:45 +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 1105ed667d 2007-03-06 Igor Zelmanovich <[email protected]>
* Style.cs: fixed:
	when AddAttributesToRender(System.Web.UI.HtmlTextWriter, WebControl) 
	is called, WebControl parameter is passed as argument to 
	FillStyleAttributes (CssStyleCollection, IUrlResolutionService) method.

svn path=/trunk/mcs/; revision=73798
2007-03-06 10:14:29 +00:00
Igor Zelmanovich 6d788037e2 2006-12-26 Igor Zelmanovich <[email protected]>
* DataGridPagerStyle.cs:
	* DataList.cs:
	* DetailsView.cs:
	* FontInfo.cs:
	* Style.cs:
	* TableItemStyle.cs:
	* TableStyle.cs:
	* TreeNodeStyle.cs:
	* WebControl.cs:
	* Wizard.cs:				
	fixed: Load/Save viewstate of WebControl does not call Load/Save viewstate 
	for it's ControlStyle, but the shared ViewState is used to manage style's 
	viewstate instead.

svn path=/trunk/mcs/; revision=70077
2006-12-26 07:59:53 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Igor Zelmanovich f2f3784580 2006-11-20 Igor Zelmanovich <[email protected]>
* Style.cs: added internal helper method RemoveTextStyles.


svn path=/trunk/mcs/; revision=68185
2006-11-20 12:17:45 +00:00
Igor Zelmanovich e8a34cd877 refactoring: makes Style class more flexible for inheriting and reuse
svn path=/trunk/mcs/; revision=65154
2006-09-10 10:57:56 +00:00
Igor Zelmanovich 39e8a15e8b Style.cs: implemented SetBit().
svn path=/trunk/mcs/; revision=64860
2006-09-04 14:08:21 +00:00
Igor Zelmanovich 1be8224f9d refactoring
svn path=/trunk/mcs/; revision=64461
2006-08-28 07:30:03 +00:00
Igor Zelmanovich 302de1069d fixed: AddAttributesToRender method calls FillStyleAttributes,
text styles applied correct

svn path=/trunk/mcs/; revision=64246
2006-08-23 13:28:22 +00:00
Igor Zelmanovich d3f62d2a68 restored r63894: for 1.x is refactoring only
svn path=/trunk/mcs/; revision=64229
2006-08-23 09:02:51 +00:00
Gonzalo Paniagua Javier d2a56af012 2006-08-18 Gonzalo Paniagua Javier <[email protected]>
* Style.cs:
	* ChangeLog: revert r63894. It modified the 1.x profile, it wasn't
	submitted for review and it only added tests for the 2.0 profile.


svn path=/trunk/mcs/; revision=63994
2006-08-18 15:45:40 +00:00
Igor Zelmanovich ca456088ef When empty style is registered IsEmpty returns false.
svn path=/trunk/mcs/; revision=63899
2006-08-17 11:44:10 +00:00
Igor Zelmanovich 7a76f35392 When style is registered with StyleSheet AddAttributesToRender method adds class attribute but not style to writer
svn path=/trunk/mcs/; revision=63894
2006-08-17 08:40:50 +00:00
Gonzalo Paniagua Javier 6eaf7760c4 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
* Style.cs:
	* Label.cs:
	* TreeView.cs: Patch by Marek Habersack that fixes bug #78968 take 2.


svn path=/trunk/mcs/; revision=63311
2006-08-03 16:59:39 +00:00
Vladimir Krasnov 258f548aa7 * Style.cs: fixed restoring FontInfo from ViewState
svn path=/trunk/mcs/; revision=63307
2006-08-03 16:25:49 +00:00
Gonzalo Paniagua Javier 36a17d89ff 2006-07-28 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: output the text-decoration value even when it is 'none'.
	Patch by Marek Habersack that fixes bug #78968.


svn path=/trunk/mcs/; revision=63092
2006-07-28 18:35:59 +00:00
Vladimir Krasnov 5d5395000f * Style.cs: BorderStyle should be added if BorderWidth greater than 0
* Image.cs: in 2.0 there is no border attribute, but border-width style attribute

svn path=/trunk/mcs/; revision=62656
2006-07-16 13:12:48 +00:00
Vladimir Krasnov 51887b0475 * Style.cs: fixed WriteStyleAttributes to set border style to solid, if it not set but the border has width
fixes in CopyFrom, MergeWith correct unit compare when it has zero value

svn path=/trunk/mcs/; revision=57889
2006-03-13 09:26:51 +00:00
Gonzalo Paniagua Javier 933e8aa1e6 2005-10-10 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: add a 'border-style: solid' to make IE happy. Fixes bug
	76373.


svn path=/trunk/mcs/; revision=51501
2005-10-10 07:08:36 +00:00
Gonzalo Paniagua Javier dd2bbcbd2d 2005-10-02 Gonzalo Paniagua Javier <[email protected]>
* FontInfo.cs: removed useless ctor.
	* Style.cs: keep here some commented out debugging code.
	* DataGrid.cs: the Items property does not create a new arraylist if
	the items_list was already initialized. Add case for Separator.
	* DataGridColumn.cs: when sorting is enabled, the linkbutton rendered
	in the header columns has a special ForeColor handling.


svn path=/trunk/mcs/; revision=51095
2005-10-02 22:30:45 +00:00
Gonzalo Paniagua Javier bc9bd367eb 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: fix the 2.0 build.


svn path=/trunk/mcs/; revision=50950
2005-09-28 15:39:02 +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 adf172ecf9 2005-09-23 Sebastien Pouliot <[email protected]>
* Button.cs: For 2.0 don't add the "name" attribute unless there's an 
	id.
	* DataGrid.cs: Fix TagKey (table) for 2.0.
	* DataList.cs: Revert 2.0 specific stuff that was changed in RC.
	* DropDownList.cs: For 2.0 don't add the "name" attribute unless 
	there's an id.
	* ListBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* RoleGroupCollection.cs: Fix "extra" exception in Remove method.
	* Style.cs: Fixed (2.0) RegisteredCssClass to returns String.Empty 
	(i.e. not null).
	* TextBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* TreeView.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* XmlDataSource.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.


svn path=/trunk/mcs/; revision=50583
2005-09-23 15:46:05 +00:00
Sebastien Pouliot 0bbe2342c3 2005-09-20 Sebastien Pouliot <[email protected]>
* AccessDataSource.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [ToolboxBitmap] on class.
	* AdRotator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Removed extra Page and ViewState properties.
	* BulletedList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Button.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Calendar.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* CheckBox.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* CompositeControl.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added new protected RecreateChildControls method.
	* DataControlCommands.cs: Added declarative security (LinkDemands) for 
	Minimal. Added private ctor.
	* DataGrid.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Fixed properties for 2.0 (mostly removing 
	[Bindable]). Added override for TagKey property.
	* DataGridColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [UrlProperty] on HeaderImageUrl (2.0).
	* DataGridItem.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added IDataItemContainer interface for 2.0.
	* DataGridPagerStyle.cs: Added declarative security (LinkDemands) for 
	Minimal. Remove [Bindable] from 2.0 and add [Localizable].
	* DataList.cs: Removed [Load|Save]ControlState methods.
	* DropDownList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* EditCommandColumn.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Added missing attributes, 
	[DefaultValue] and [Localize] for 2.0.
	* FontInfo.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Remove [Bindable] and added [RefreshProperties] 
	for 2.0.
	* Login.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Fixed IsStyleEmpty. Removed extra [Themeable] attributes.
	* ImageButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* LinkButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* ListBox.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* Literal.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Removed [EditorBrowsable] on CreateControlCollection method.
	* LoginStatus.cs: Added missing [Themeable] attributes on properties.
	* MenuItemStyle.cs: Changed IsEmpty to public (required to compile - 
	but will be shown as extra).
	* RadioButton.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* RadioButtonList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
	* RangeValidator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Added missing [Themeable] attributes.
	* RegularExpressionValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Remove [Bindable] from 2.0 and add 
	[Localizable].
	* RoleGroupCollection.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal. Fixed base class (changed in RC). 
	Re-implemented CopyTo. Removed some methods.
	* Style.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Remove static IsStyleEmpty and ToString (from 2.0). IsEmpty
	is now public in 2.0.
	* Table.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* TableCell.cs: Fixed PersistenceMode for 2.0.
	* TextBox.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal. Added [SupportsEventValidation] on class (2.0).
	* TreeNodeStyle.cs: Changed IsEmpty to public (required to compile - 
	but will be shown as extra).
	* WebControl.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal. Removed [EditorBrowsable] on ControlStyleCreated 
	property.


svn path=/trunk/mcs/; revision=50329
2005-09-20 19:41:00 +00:00
Sebastien Pouliot 9474837730 2005-09-15 Sebastien Pouliot <[email protected]>
* DataControlField.cs, HotSpot.cs, MenuItem.cs, Parameter.cs, 
	Style.cs, TreeNode.cs: Replace _empty_ StateBag.SetDirty () with 
	StateBag.SetDirty (true).


svn path=/trunk/mcs/; revision=50105
2005-09-15 20:56:42 +00:00
Chris Toshok 8e8d1b5ec0 2005-09-13 Chris Toshok <[email protected]>
* Style.cs: corcompare stuff.

	* RequiredFieldValidator.cs: more corcompare stuff.

	* CheckBoxList.cs: clean up some of the interface methods vs
	protected virtual 2.0 calls.

	* SubMenuStyle.cs: corcompare says this should implement
	ICustomTypeDescriptor... sooo, make it.


svn path=/trunk/mcs/; revision=49984
2005-09-13 21:29:47 +00:00
Chris Toshok 3ef72d30a0 2005-09-09 Chris Toshok <[email protected]>
* FontInfo.cs (IsEmpty): new internal property, used by
	Style.IsEmpty.

	* Style.cs (IsEmpty): make sure the fontinfo is null or empty as
	well.


svn path=/trunk/mcs/; revision=49824
2005-09-09 19:32:46 +00:00
Miguel de Icaza d0ced61043 Remove dead code
svn path=/trunk/mcs/; revision=49712
2005-09-08 15:13:53 +00:00
Chris Toshok 545c9d318f 2005-09-01 Chris Toshok <[email protected]>
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
	CommandField.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, DataGridPagerStyle.cs, Label.cs,
	CheckBox.cs, RadioButton.cs, TableStyle.cs, ListControl.cs,
	Image.cs, BaseCompareValidator.cs, BaseDataList.cs, DataList.cs,
	TemplateColumn.cs, RangeValidator.cs, ImageField.cs,
	BaseValidator.cs, CustomValidator.cs, TextBox.cs,
	ButtonFieldBase.cs, BoundField.cs, CheckBoxList.cs,
	RadioButtonList.cs, RequiredFieldValidator.cs, AdRotator.cs,
	Repeater.cs, DropDownList.cs, CheckBoxField.cs, HyperLink.cs,
	XmlDataSource.cs, Panel.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs,
	WebControl.cs, Literal.cs, ValidationSummary.cs, ImageButton.cs,
	TableRow.cs, LinkButton.cs, DataGridColumn.cs, BoundColumn.cs,
	TableItemStyle.cs: Add some WebCategory and WebSysDescription
	attributes.


svn path=/trunk/mcs/; revision=49301
2005-09-01 21:25:48 +00:00
Miguel de Icaza 9280957789 2005-09-01 Miguel de Icaza <[email protected]>
* Various places: make sure that the DefaultValue matches the
	type.  Thanks to Michael for pointing this out.

	In future audits, you might want to use the following awk command:

	awk '/DefaultValue/ { v=$0; looking = 1; } /public/ && looking &&
	!/string/ && !/ int / && !/ bool / { print FILENAME; print v;
	print $0; looking = 0; } /public/ && looking { looking = 0; } '
	*.cs

	The above skips bools, strings and ints as those were fine as we
	set them.  The bug was on the other ones.



svn path=/trunk/mcs/; revision=49274
2005-09-01 14:55:44 +00:00
Peter Dennis Bartok d50296e731 2005-08-25 Peter Dennis Bartok <[email protected]>
* StyleTest.cs: Added tests for CssRegisteredStyle

2005-08-03  Peter Dennis Bartok  <[email protected]>

	* EditCommandColumnTest.cs: Updated; InitializeCell() passes except
	  for the missing footer; InitializeCellEdit() has a problem with
	  the name given to the TextBox controls

2005-08-03  Peter Dennis Bartok  <[email protected]>

	* EditCommandColumnTest.cs: Enable tests

2005-08-03  Peter Dennis Bartok  <[email protected]> 

	* DataGridPagerStyleTest.cs: Added testcase

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* StyleTest.cs: Added font-related tests to check for special
	  Name/Names behaviour

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* EditCommandColumnTest.cs: Added tests; marked some as NotWorking
	  until PagedDataSource is not throwing NotImpl

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* CustomValidatorTest.cs: Added tests

2005-07-27  Peter Dennis Bartok  <[email protected]>

	* DataGridPagerStyleTest.cs: Added tests

2005-07-26  Peter Dennis Bartok  <[email protected]>

	* DataGridItemTest.cs: Added tests

2005-07-26  Peter Dennis Bartok  <[email protected]> 

	* DataGridItemCollectionTest.cs: Added tests

2005-07-25  Peter Dennis Bartok  <[email protected]> 

	* StyleTest.cs: Refined tests

2005-07-21  Peter Dennis Bartok  <[email protected]> 

	* CustomValidatorTest.cs: Added

2005-07-21  Peter Dennis Bartok  <[email protected]> 

	* RangeValidatorTest.cs: More test cases

2005-07-20  Peter Dennis Bartok  <[email protected]> 

	* DropDownListTest.cs: Added [ExpectedException] for double select
	  test

2005-07-20  Peter Dennis Bartok  <[email protected]> 

	* ValidationSummaryTest.cs: Added rendering tests

2005-07-19  Peter Dennis Bartok  <[email protected]> 

	* DropDownListTest.cs: Testcases added
	* RangeValidatorTest.cs: Added
	* ValidatedControlConverterTest.cs: Added
	* ValidationSummaryTest.cs: Added

2005-07-15  Peter Dennis Bartok  <[email protected]> 

	* DropDownListTest.cs: Testcases added

2005-07-14  Peter Dennis Bartok  <[email protected]> 

	* WebColorConverter.cs: Testcases added

2005-07-14  Peter Dennis Bartok  <[email protected]> 

	* TargetConverterTest.cs: Testcases added

2005-07-13  Peter Dennis Bartok  <[email protected]> 

	* FontNamesConverterTest.cs: Testcases added

2005-07-13  Peter Dennis Bartok  <[email protected]>

	* ListItemCollectionTest.cs: Added
	* ListBoxTest.cs: Marked test as not working since it dependes on
	  ListControl making a call to an obsolete internal method

2005-07-12  Peter Dennis Bartok  <[email protected]>

	* WebControlTest.cs: Added test for loading/saving of state. Switched
	  to use Sebastiens GetWriter method

2005-07-11  Peter Dennis Bartok  <[email protected]>

	* WebControlTest.cs: Added test.

2005-07-07  Peter Dennis Bartok  <[email protected]>

	* StyleTest.cs: Added test.

2005-07-21  Peter Dennis Bartok  <[email protected]>

	* PageTest.cs: Added new test file, added exception test for
	  Request property

2005-07-18  Peter Dennis Bartok  <[email protected]>

	* ControlTest.cs: Added test file for Control class, initially
	  contains only IDataBindingsAccessor test

2005-07-26  Peter Dennis Bartok  <[email protected]>

	* HtmlSelect.cs: Added missing attributes

2005-07-25  Peter Dennis Bartok  <[email protected]>

	* HtmlForml.cs: Implemented UniqueID (new in sp1)
	* HtmlButton.cs, HtmlInputButton.cs, HtmlInputImage.cs: Attribute fixes

2005-07-21  Peter Dennis Bartok  <[email protected]>

	* Page.cs: Need to throw exception when accessing Request but no
	  context exists

2005-07-18  Peter Dennis Bartok  <[email protected]>

	* Control.cs: Added IDataBindingsAccessor interface methods

2005-07-18  Peter Dennis Bartok  <[email protected]>

	* Control.cs: Added missing IParserAccessor.AddParsedSubObject 
	  interface method

2005-07-18  Peter Dennis Bartok  <[email protected]>

	* Control.cs:
	  - Default name for controls on MS.Net is "_ctl" not "_ctrl"
	  - MS does not append 'a' for auto-generated names

2005-07-11  Peter Dennis Bartok  <[email protected]>

	* AttributeCollection.cs: 
	  - Changes to match MS behaviour, the "style" attribute is always 
	    added to the list, in addition to being added to the 
	    CssStyleCollection. Also added check for "style" attribute when 
	    setting via index setter
	  - When "Style" attribute is added, CssStyleCollection is 
	    automatically created
	  - The style keyword needs to be lowercase

2005-08-25  Peter Dennis Bartok  <[email protected]>

	* Style.cs: Implemented 2.0 CopyTextStylesFrom(), SetRegisteredCssClass()
	  and RegisteredCssClass property

2005-08-25  Peter Dennis Bartok  <[email protected]>

	* Style.cs, TableStyle.cs, TableItemStyle.cs, DataGridPagerStyle.cs:
	  Load ViewState for derived classes; no public LoadViewState override 
	  exists in those classes
	* Style.cs: Added 2.0 IsStyleEmpty method

2005-08-04  Peter Dennis Bartok  <[email protected]>

	* ListBox.cs: Use WriteXXXX to render HTML, this way it matches MS output
	* ListControl.cs: Clear item list before adding data (again)

2005-08-04  Peter Dennis Bartok  <[email protected]> 

	* DataGrid.cs(CreateControlHierarchy): Consider the EditItemIndex when
	  creating rows
	* ListControl.cs(OnDataBinding): Only apply DataTextFormatString to text
	  if DataTextField is bound
	* EditCommandColumn.cs(InitializeCell): MS inserts a &nbsp; between the 
	  two controls in edit mode, lets do the same

2005-08-03  Peter Dennis Bartok  <[email protected]> 

	* EditCommandColumn.cs: No need to offer edit when in edit mode.
	  Flipped output

2005-08-03  Peter Dennis Bartok  <[email protected]> 

	* WebControl.cs(CopyBaseAttributes): Use Enabled setter to also
	  set tracking var

2005-08-03  Peter Dennis Bartok  <[email protected]> 

	* DataGridPagerStyle.cs(PageButtonCount): Throw exception on
	  negative value

2005-08-01  Peter Dennis Bartok  <[email protected]> 

	* WebControl.cs: Track enabled state across sessions

2005-08-01  Peter Dennis Bartok  <[email protected]> 

	* ListControl.cs(OnDatabinding): Value is equivalent to text if
	  by default

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* FontInfo.cs:
	  - Name property now throws exception when set to null
	  - Names now handles situation where our bit tells us we have
	    a font, but it's not in the StateBag (null removal)
	* RangeValidator.cs: Removed unused vars

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* EditCommandColumn.cs: Implemented

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* CustomValidator.cs: Bug fixes (Thanks to Chris for creating the 
	  client side code)

2005-07-27  Peter Dennis Bartok  <[email protected]>

	* DataGrid.cs: DataGridPagerStyle does not need DataGrid as argument
	  for it's constructor, so remove it
	* DataGridPagerStyle.cs: Removed DataGrid argument from constructor

2005-07-27  Peter Dennis Bartok  <[email protected]> 

	* DataGridPagerStyle.cs: Implemented
	* TableItemStyle.cs (MergeWith): Now only sets style bits it owns
	* Style.cs: Added Styles enum values for DataGridPagerStyle

2005-07-26  Peter Dennis Bartok  <[email protected]>

	* DataGridItem.cs: Implemented

2005-07-26  Peter Dennis Bartok  <[email protected]>

	* DataGridItemCollection.cs: Implemented

2005-07-26  Peter Dennis Bartok  <[email protected]>

	* FontInfo.cs, CheckBox.cs, RadioButton.cs, ListItemCollection.cs:
	  Fixed use of literal strings, instead using Consts
	* Xml.cs, RegularExpressionValidator.cs, TemplateColumn.cs,
	  TextBox.cs, RequiredFieldValidator.cs, Repeater.cs, RepeaterItem.cs,
	  Panel.cs, Literal.cs: Added attributes
	* BaseValidator.cs: Added missing override

2005-07-25  Peter Dennis Bartok  <[email protected]>

	* BaseValidator.cs: Added AssociateControlID (new in sp1), fixed 
	  attributes
	* Xml.cs: Fixed base class, attributes
	* Button.cs, DataGridColumnCollection.cs, HyperLinkColumn.cs, 
	  Label.cs, ListItem.cs, ListControl.cs, CustomValidator.cs, 
	  CheckBoxList.cs, AdRotator.cs, DropDownList.cs, HyperLink.cs, 
	  DataGrid.cs, ButtonColumn.cs, CompareValidator.cs, Calendar.cs, 
	  ListBox.cs, ImageButton.cs, LinkButton.cs: Attribute fixes

2005-07-25  Peter Dennis Bartok  <[email protected]> 

	* DataGridSortCommandEventArgs: Sealed class
	* ButtonColumn.cs, Calendar.cs: Added Attributes

2005-07-25  Peter Dennis Bartok  <[email protected]>

	* Button.cs, Style.cs, BaseCompareValidator.cs, RangeValidator.cs,
	  BaseValidator.cs, AdRotator.cs, BoundColumn.cs: Added Attributes

2005-07-25  Peter Dennis Bartok  <[email protected]> 

	* FontInfo.cs, Style.cs, RangeValidator.cs, ListItemCollection.cs,
	  DropDownList.cs, WebControl.cs, ValidationSummary.cs: Added Attributes

2005-07-22  Peter Dennis Bartok  <[email protected]> 

	* Style.cs (CopyFrom): Reset must go, MS doesn't do it (See tests)

2005-07-22  Peter Dennis Bartok  <[email protected]> 

	* Style.cs (CopyFrom): Reset our styles and don't set bits from
	  target explicitly, properties will set them

2005-07-21  Peter Dennis Bartok  <[email protected]> 

	* CustomValidator.cs: Initial implementation, still work in progress

2005-07-20  Peter Dennis Bartok  <[email protected]> 

	* DropDownList.cs: 
	  - Implemented RaisePostDataChangedEvent()
	  - Spewing postback command if AutoPostBack is true

2005-07-20  Peter Dennis Bartok  <[email protected]> 

	* ListItemCollection.cs: Removed obsolete method that's no longer
	  referenced

2005-07-20  Peter Dennis Bartok  <[email protected]>

	* DropDownList.cs: Oops. Forgot to implement LoadPostData
	* ListItemCollection.cs: Added convenience method to have faster
	  PostData handling

2005-07-20  Peter Dennis Bartok  <[email protected]>

	* DropDownList.cs:
	  - Automatically select the first item if none are selected
	  - Throw exception if more than one item is selected

2005-07-20  Peter Dennis Bartok  <[email protected]> 

	* ValidationSummary.cs: Implemented rendering

2005-07-19  Peter Dennis Bartok  <[email protected]> 

	* ValidationSummaryTest.cs: Started implementation
	* RangeValidator.cs: Implemented
	* ValidatedControlConverter.cs: Implemented
	* DropDownList.cs: Implemented

2005-07-14  Peter Dennis Bartok  <[email protected]> 

	* WebColorConverter.cs: 
	  - Alpha of 255 is only set if the hex number is exactly 6 digits
	  - Ben didn't like the catch { throw; } (even though MS documents to
	    do so)
	  - Use Invariant Culture for parsing (thanks, Ben)

2005-07-14  Peter Dennis Bartok  <[email protected]>

	* WebColorConverter.cs: Implemented

2005-07-14  Peter Dennis Bartok  <[email protected]>

	* TargetConverter.cs: Implemented

2005-07-13  Peter Dennis Bartok  <[email protected]>

	* FontNamesConverter.cs: Implemented

2005-07-13  Peter Dennis Bartok  <[email protected]> 

	* ListItemCollection.cs: Count can be derived from the array, which
	  allows us to use a Pair instead of a Triplet and save some space

2005-07-13  Peter Dennis Bartok  <[email protected]>

	* ListItemCollection.cs: Implemented
	* WebControl.cs: Added check for enumeration validity (thanks Jackson)

2005-07-13  Peter Dennis Bartok  <[email protected]>

	* FirstDayOfWeek.cs: Added

2005-07-13  Peter Dennis Bartok  <[email protected]>

	* Style.cs (AddAttributesToRender): Don't render attributes if they
	  contain only their default value

2005-07-12  Peter Dennis Bartok  <[email protected]>

	* WebControl.cs (AddAttributesToRender): Added ID to rendered
	  attributes

2005-07-12  Peter Dennis Bartok  <[email protected]>

	* Style.cs(MergeWith): Handle null styles

2005-07-12  Peter Dennis Bartok  <[email protected]> 

	* Style.cs: Only render font elements if fontinfo object exists
	* WebControl.cs:
	  - Implemented SaveViewState()
	  - Added loading of Style to LoadViewState
	  - Implemented IAttributeAccessor methods

2005-07-12  Peter Dennis Bartok  <[email protected]> 

	* WebControl.cs: 
	  - Implemented methods
	  - Fixed brackets

2005-07-12  Peter Dennis Bartok  <[email protected]> 

	* WebControl.cs: Implemented properties

2005-07-11  Peter Dennis Bartok  <[email protected]> 

	* FontInfo.cs: Now using BenM's fancy internal StateBag methods

2005-07-11  Peter Dennis Bartok  <[email protected]>

	* FontUnit.cs: Added TypeConverter attribute to class
	* FontUnitConverter.cs: Implemented

2005-07-11  Peter Dennis Bartok  <[email protected]>

	* Style.cs: Handle null constructor argument for bag

2005-07-07  Peter Dennis Bartok  <[email protected]>

	* FontInfo.cs: Fixed behaviour discrepancies showed by tests

2005-07-07  Peter Dennis Bartok  <[email protected]>

	* FontInfo.cs: Added and implemented.
	* Style.cs: Fixed behaviour discrepancies showed by tests

2005-07-06  Peter Dennis Bartok  <[email protected]>

	* Style.cs: Added and implemented.

2005-07-06  Peter Dennis Bartok  <[email protected]>

	* WebControl.cs: Added stub

svn path=/trunk/mcs/; revision=48922
2005-08-26 22:28:18 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Lluis Sanchez 3139788397 2005-02-18 Lluis Sanchez Gual <[email protected]>
* Style.cs: Method name fix.
	* HyperLinkColumn.cs, HyperLink.cs: Moved SoftkeyLabel to HyperLink.
	* BaseCompareValidator.cs: Method signature fix.
	* CollectionDataSource.cs: Implemented DataSource wrapper for collections.
	* BaseDataList.cs, Repeater.cs: Fixed data binding code.
	* BulletedList.cs: Added missing method.
	* DataBoundControl.cs, BaseDataBoundControl.cs: Made it behave like MS.NET.


svn path=/trunk/mcs/; revision=40887
2005-02-18 20:38:29 +00:00
Lluis Sanchez 300c4162b7 2005-02-02 Lluis Sanchez Gual <[email protected]>
* Button.cs, MonthChangedEventArgs.cs, FontInfo.cs, Xml.cs, Style.cs,
	CookieParameter.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, WizardNavigationEventArgs.cs,
	ServerValidateEventArgs.cs, Menu.cs, DataControlField.cs,
	DataGridPagerStyle.cs, Label.cs, CheckBox.cs, ListItem.cs,
	RadioButton.cs, TableStyle.cs, ListControl.cs, Image.cs,
	BaseCompareValidator.cs, FontUnit.cs, DataListCommandEventArgs.cs,
	IButtonControl.cs, BaseDataList.cs, DataList.cs, BulletedList.cs,
	RangeValidator.cs, DataBoundControl.cs, ControlParameter.cs,
	RepeaterItemEventArgs.cs, SqlDataSource.cs, BaseValidator.cs,
	CustomValidator.cs, MenuItem.cs, SessionParameter.cs, TextBox.cs,
	QueryStringParameter.cs, Content.cs, ContentPlaceHolder.cs,
	CheckBoxList.cs, RepeaterCommandEventArgs.cs, RadioButtonList.cs,
	RequiredFieldValidator.cs, AdRotator.cs, DataListItemEventArgs.cs,
	DataGridSortCommandEventArgs.cs, Repeater.cs,
	MenuItemTemplateContainer.cs, HyperLink.cs, SqlDataSourceView.cs,
	XmlDataSource.cs, MultiView.cs, DataGridCommandEventArgs.cs,
	Panel.cs, CompositeControl.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, HierarchicalDataBoundControl.cs,
	EditCommandColumn.cs, Calendar.cs, SiteMapDataSource.cs, 
	ListBox.cs, TableCell.cs, ObjectDataSourceSelectingEventArgs.cs,
	ObjectDataSourceMethodEventArgs.cs,DataGridPageChangedEventArgs.cs,
	WebControl.cs, BaseDataBoundControl.cs, FormParameter.cs,
	ValidationSummary.cs, View.cs, ImageButton.cs, TableRow.cs,
	LinkButton.cs, DataGridColumn.cs, Parameter.cs, TableItemStyle.cs,
	AdCreatedEventArgs.cs:
	
	General 2.0 API fixes: missing attributes, incorrect inheritance,
	missing sealed keywords, wrong signatures, etc.


svn path=/trunk/mcs/; revision=39994
2005-02-02 16:24:08 +00:00
Lluis Sanchez 430c8c32a0 2004-12-20 Lluis Sanchez Gual <[email protected]>
* Style.cs: Implemented RegisteredCssClass property. Added
	CopyTextStylesFrom method, which copies styles that only apply to text.
	* Menu.cs, Menu.js: Added hover style support. Define all menu styles
	in the page stylesheet. Added support for ItemSpacing property.
	* MenuItemStyle.cs: Implemented FillStyleAttributes method.
	

svn path=/trunk/mcs/; revision=37993
2004-12-20 18:48:20 +00:00
Lluis Sanchez d4fb163bb8 2004-12-17 Lluis Sanchez Gual <[email protected]>
* Style.cs: Generate styles using a CssStyleCollection, so the code can
	be reused for the 2.0 FillStyleAttributes method.
	* Menu.cs: Implemented more properties and events. Rendering is very
	complete now.
	* MenuItem.cs: Added PopOutImageUrl property.
	* Menu.js: More work on submenu management.


svn path=/trunk/mcs/; revision=37887
2004-12-17 16:00:34 +00:00
Lluis Sanchez 0156d5e21a 2004-12-02 Lluis Sanchez Gual <[email protected]>
* TreeNodeBindingCollection.cs, TreeNodeStyleCollection.cs: 
	Implemented SetDirtyObject.
	* Style.cs: Implemented SetDirty().
	* TreeNodeBinding.cs: Added missing attributes. Implemented SetDirty().
	* TreeNode.cs: Added missing attributes added support for
	PopulateOnDemand. Added some missing property bindings.
	* TreeNodeCollection.cs: Several minor fixes. SetDirty must be called
	to newly added elements to make sure al new data is saved.
	* TreeView.js: Implemented support for client population of nodes.
	* TreeNodeStyle.cs: Added missing attributes.
	* TreeView.cs: Implemented support for PopulateNodesFromClient and
	PopulateOnDemand. Improved rendering.


svn path=/trunk/mcs/; revision=36946
2004-12-02 16:02:36 +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 e9232610a0 2004-06-04 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: added SetBit.

svn path=/trunk/mcs/; revision=28806
2004-06-04 01:57:37 +00:00
Gonzalo Paniagua Javier aa11211a2a 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Handlers/TraceHandler.cs:
	* System.Web.UI/Control.cs:
	* System.Web.UI/Html32TextWriter.cs:
	* System.Web.UI/HtmlTextWriter.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI.WebControls/Calendar.cs:
	* System.Web.UI.WebControls/CompareValidator.cs:
	* System.Web.UI.WebControls/ImageButton.cs:
	* System.Web.UI.WebControls/Style.cs:
	* System.Web.UI.WebControls/WebControl.cs:
	Added protected missing members and attributes.

svn path=/trunk/mcs/; revision=28743
2004-06-03 06:17:31 +00:00