Commit Graph
72 Commits
Author SHA1 Message Date
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05: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 afeab3ef73 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159296
2010-06-21 21:01:26 +00:00
Marek Habersack 2d668e9583 2010-06-21 Marek Habersack <[email protected]>
* BaseValidator.cs, BulletedList.cs, Calendar.cs, CheckBox.cs,
    	CheckBoxList.cs, DataGrid.cs, DropDownList.cs, GridView.cs,
    	HyperLink.cs, ImageButton.cs, LinkButton.cs, ListBox.cs,
    	ListControl.cs, Menu.cs, RadioButton.cs, RadioButtonList.cs,
    	RepeatInfo.cs, Repeater.cs, TextBox.cs, TreeView.cs,
    	ValidationSummary.cs, WebControl.cs: use WebControl.IsEnabled
    	instead of Enabled wherever necessary.

svn path=/trunk/mcs/; revision=159280
2010-06-21 18:41:51 +00:00
Marek Habersack 49a2098186 2009-11-30 Marek Habersack <[email protected]>
* WebControl.cs: HasAttributes made available as internal for 1.1
	Avoid calling the Attributes getter many times in
	CopyBaseAttributes.
	If TrackViewState is called and attributes state bag already
	exists, mark all items in the latter as dirty.

	* CheckBox.cs, Button.cs, ImageButton.cs, LinkButton.cs: do not
	create the Attributes collection if not necessary.

svn path=/trunk/mcs/; revision=147094
2009-11-30 12:35:20 +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
Marek Habersack b7b08220e8 2008-10-24 Marek Habersack <[email protected]>
* CheckBox.cs: register for event validation in Render ().

svn path=/trunk/mcs/; revision=116986
2008-10-24 20:06:54 +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
Marek Habersack 81c4068d12 2008-10-17 Marek Habersack <[email protected]>
* ImageMap.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in Render ().

	* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().

	* TextBox.cs: validate the event in LoadPostData ().
	Register for event validation in AddAttributesToRender ().

	* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
	Register for event validation in Render ().

	* RadioButton.cs: validate the event in LoadPostData ().
	Register for event validation in InternalAddAttributesToRender.

	* CheckBox.cs, RadioButtonList.cs: validate the event in
	RaisePostDataChangedEvent.

	* Menu.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in GetClientEvent ().

	* DetailsView.cs, GridView.cs: validate the event in
	RaisePostBackEvent ().
	Register for validation in GetCallbackScript () and in OnPreRender

	* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
	ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* Control.cs: added the ValidateEvent internal method, used by
	classes descending from Control to automatically trigger event
	validation.

	* Page.cs: removed the CheckForValidationSupport method. It moved
	to Control.cs
	RaisePostBackEvent no longer validates the events, this
	functionality has been moved to Control.ValidateEvent.

2008-10-17  Marek Habersack  <[email protected]>

	* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.

	* HtmlInputButton.cs: validate the event in
	RaisePostBackEventInternal ().
	Register for event validation in RenderAttributes ()

	* HtmlTextArea.cs: validate the event in
	RaisePostBackDataChangedEvent ().

	* HtmlButton.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ()

	* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ().

	* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
	LoadPostData.

	* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
	HtmlInputPassword.cs: validate the event in
	RaisePostDataChangedEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* MenuAdapterTest.cs: work around event validation failure in the
	test environment.

2008-10-17  Marek Habersack  <[email protected]>

	* PageTest.cs: use a custom version of HtmlInputHidden control to
	work around the new event validation code which doesn't work in
	this instance.

svn path=/trunk/mcs/; revision=116231
2008-10-17 14:56:19 +00:00
Marek Habersack 4d3ef6c1ee 2008-07-03 Marek Habersack <[email protected]>
* CheckBox.cs: do not render the language="javascript" attribute
	in the 2.0 profile.

svn path=/trunk/mcs/; revision=107120
2008-07-02 23:28:50 +00:00
Marek Habersack 3476c409c3 2007-12-13 Marek Habersack <[email protected]>
* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
	Page.cs: speed optimization - use String.Concat instead of
	String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* Menu.cs, TreeView.cs: optimize use of String.Format in
	OnPreRender.
	Speed optimization - use String.Concat instead of String.Format in
	some cases.

	* GridView.cs, DetailsView.cs: optimize use of String.Format in
	OnPreRender.

	* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
	WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
	ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
	optimization - use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SessionId.cs: 
	speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
	use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* ApplicationManager.cs, ApplicationHost.cs,
	DefaultVirtualPathProvider.cs: speed optimization - use
	String.Concat instead of String.Format in some cases.

svn path=/trunk/mcs/; revision=91230
2007-12-13 13:50:10 +00:00
Marek Habersack a53f2c9675 2007-09-25 Marek Habersack <[email protected]>
* WebControl.cs: added an internal method, BuildScriptAttribute,
	which merges the specified JavaScript code in an attribute, with
	the value of that attribute specified by the user.

	* CheckBox.cs, DropDownList.cs: AutoPostBack handling makes sure to
	preserve user-specified attribute value, if present.

	* ListBox.cs, TextBox.cs: AddAttributesToRender calls the base
	after doing its job. AutoPostBack handling makes sure to preserve
	user-specified attribute value, if present. Fixes bug #327816.

svn path=/trunk/mcs/; revision=86294
2007-09-25 00:22:04 +00:00
Vladimir Krasnov 345867a67a * Button.cs, DataControlFieldHeaderCell.cs, FileUpload.cs, Table.cs, RegularExpressionValidator.cs, CheckBox.cs, HiddenField.cs, TableStyle.cs, Image.cs, BulletedList.cs, RangeValidator.cs, BaseValidator.cs, CustomValidator.cs, RepeatInfo.cs, TextBox.cs, RequiredFieldValidator.cs, AdRotator.cs, TableHeaderCell.cs, ImageMap.cs, Panel.cs, CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs, WebControl.cs, ImageButton.cs, TableItemStyle.cs: refactoring, used AddAttribute overload without encoding on known attribute values
svn path=/trunk/mcs/; revision=83500
2007-08-05 14:30:23 +00:00
Vladimir Krasnov 2cb275539d fixed broken 1.1 compatibility
svn path=/trunk/mcs/; revision=80616
2007-06-24 09:21:05 +00:00
Vladimir Krasnov 487467826d * CheckBox.cs: fixed Render, HasAttributes called instead Attributes.Count
svn path=/trunk/mcs/; revision=80612
2007-06-24 07:56:34 +00:00
Igor Zelmanovich ee3e5ec5d5 2007-03-05 Igor Zelmanovich <[email protected]>
* CheckBox.cs: fixed: 'span' tag is not rendered if all attributes 
	are rendered in 'input' tag. 

svn path=/trunk/mcs/; revision=73723
2007-03-05 15:37:20 +00:00
Igor Zelmanovich 4a88dc1de4 2006-02-19 Igor Zelmanovich <[email protected]>
* CheckBox.cs:
	* ListControl.cs:
	* TextBox.cs:
	implemented Form.SubmitDisabledControls feature.			

svn path=/trunk/mcs/; revision=73103
2007-02-19 10:46:46 +00:00
Igor Zelmanovich 5f8d7c5582 2007-01-30 Igor Zelmanovich <[email protected]>
* CheckBox.cs:
	does not RegisterRequiresPostBack if is not enabled.

svn path=/trunk/mcs/; revision=71973
2007-01-30 16:11:50 +00:00
Vladimir Krasnov 6e9d8e78c5 * WebControl.cs: added internal method AddDisplayStyleAttribute for display:inline-block style attribute
* LinkButton.cs
* HyperLink.cs
* CheckBox.cs: added call to AddDisplayStyleAttribute on rendering

svn path=/trunk/mcs/; revision=71813
2007-01-28 17:20:21 +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 118adcb57c 2006-11-21 Igor Zelmanovich <[email protected]>
* CheckBox.cs: fixed: new 2.0 features such 
	LabelAttributes and InputAttributes.


svn path=/trunk/mcs/; revision=68242
2006-11-21 10:04:09 +00:00
Igor Zelmanovich 08262015b6 2006-11-20 Igor Zelmanovich <[email protected]>
fixed and optimized support for event validation

svn path=/trunk/mcs/; revision=68178
2006-11-20 09:10:36 +00:00
Marek Habersack 648d00f214 Support for event validation
svn path=/trunk/mcs/; revision=68082
2006-11-17 18:56:07 +00:00
Igor Zelmanovich 2a8ba19da5 * CheckBox.cs:
make onclick attribute to consider ValidationGroup property.

svn path=/trunk/mcs/; revision=65625
2006-09-19 10:27:51 +00:00
Juraj Skripsky c546bb798d 2006-07-13 Juraj Skripsky <[email protected]>
* CheckBox.cs (LoadPostData): the value of a disabled checkbox remains
	unchanged.


svn path=/trunk/mcs/; revision=62583
2006-07-13 21:04:51 +00:00
Gonzalo Paniagua Javier da63b62e45 2006-04-24 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: certain attributes have to be rendered in the input tag,
	not the <span>. Fixes bug #71251.


svn path=/trunk/mcs/; revision=59822
2006-04-24 19:29:43 +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
Chris Toshok 99bc4f7b8b 2006-02-21 Chris Toshok <[email protected]>
* ButtonField.cs: ues the ViewState.Get* pattern with default
	instead of the explicit ViewState lookup + null check.

	* CommandField.cs: same.

	* CheckBox.cs: same.

	* AutoGeneratedFieldProperties.cs: same.

	* BaseDataList.cs: same.

	* CircleHotSpot.cs: same.

	* BulletedList.cs: same.

	* DataBoundControl.cs: same.

	* CookieParameter.cs: same.

	* ControlParameter.cs: same.

	* CustomValidator.cs: same.

	* ButtonFieldBase.cs: same.

	* CheckBoxField.cs: same, and fix the scope of InitializeDataCell.

	* AutoGeneratedField.cs: fix scope of InitializeDataCell.

	* BaseValidator.cs: same, and clean up the getter/setter formatting.

	* CompareValidator.cs: same.


svn path=/trunk/mcs/; revision=57120
2006-02-22 01:13:12 +00:00
Vladimir Krasnov 754b9d76b8 * CheckBox.cs: fixed InternalAddAttributesToRender, Render to
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList

svn path=/trunk/mcs/; revision=57071
2006-02-20 15:45:42 +00:00
Vladimir Krasnov df67f5c2f0 CheckBox.cs: fixed Render function, removed rendering of empty <span> element if ControlStyleCreated but it's empty.
fixed "disabled" attribute, it should be placed into span element

svn path=/trunk/mcs/; revision=57070
2006-02-20 15:01:46 +00:00
Chris Toshok 89e4fb7548 2006-01-22 Chris Toshok <[email protected]>
* CheckBox.cs: s/GetPostBackClientEvent/GetPostBackEventReference.

	* MultiView.cs (OnBubbleEvent): case the rhs to a string to get
	the intended comparison right and quiet mcs.


svn path=/trunk/mcs/; revision=55915
2006-01-22 20:58:37 +00:00
Gonzalo Paniagua Javier 3b1a44ffc1 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: add possible 'internal' attributes to the input tag. Fix
	the 'name' attribute when not aligninng to the right.
	* RadioButton.cs: use NameAttribute instead of GroupName when indexing
	the collection. Raise the OnCheckedChanged event. Fixes bug #76710.


svn path=/trunk/mcs/; revision=53739
2005-12-01 01:37:08 +00:00
Gonzalo Paniagua Javier 6c78824894 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: use the NameAttribute property for setting 'name'.
	* RadioButton.cs: get a UniqueID based identifier for 'name'.
	Fixes bug #76710.


svn path=/trunk/mcs/; revision=53323
2005-11-21 20:45:14 +00:00
Gonzalo Paniagua Javier 6190b29189 2005-11-03 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: AddAttributesToRender was extra in 1.1, so moved all
	the logic to Render and make it render the ID, which fixes bug #76596.


svn path=/trunk/mcs/; revision=52528
2005-11-03 21:26:49 +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 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
Chris Toshok 071571acdf 2005-09-09 Chris Toshok <[email protected]>
* CheckBox.cs, CheckBoxList.cs, DropDownList.cs, ImageButton.cs,
	ListBox.cs, RadioButton.cs, RadioButtonList.cs, TextBox.cs: fix up
	LoadPostData/RaisePostDataChangedEvent.


svn path=/trunk/mcs/; revision=49828
2005-09-09 20:25:04 +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
Lluis Sanchez ada5b7053c 2005-08-30 Lluis Sanchez Gual <[email protected]>
* SubMenuStyle.cs, MenuItemStyle.cs, TreeNodeStyle.cs:
	  Don't use the obsolete IsSet method.
	* Menu.cs: Implement IPostBackEventHandler.RaisePostBackEvent.
	* CheckBox.cs: Implement some 2.0 methods.
	* GridView.cs: Removed some "throw new NotImplementedException"


svn path=/trunk/mcs/; revision=49115
2005-08-30 11:50:32 +00:00
Chris Toshok cf0df4471c 2005-08-29 Chris Toshok <[email protected]>
* LinkButton.cs: fix some 2.0 Page/ClientScript obsolete warnings.

	* CheckBox.cs: same.
	
	* BaseValidator.cs: same.
	
	* DropDownList.cs: same.
	
	* ValidationSummary.cs: same.


svn path=/trunk/mcs/; revision=49071
2005-08-29 17:50:13 +00:00
Dick Porter 3ff73d8d7d 2005-07-27 Dick Porter <[email protected]>
* HtmlInputCheckBoxTest.cs: Tests for HtmlInputCheckBox

2005-07-26  Dick Porter  <[email protected]>

	* HtmlSelectTest.cs: Tests for HtmlSelect

2005-07-21  Dick Porter  <[email protected]>

	* HtmlImageTest.cs: The order of attribute rendering has changed,
	and now matches MS

2005-07-19  Dick Porter  <[email protected]>

	* HtmlImageTest.cs: Added tests for negative values in int
	properties

2005-07-14  Dick Porter  <[email protected]>

	* HtmlFormTest.cs: New set of tests

2005-07-07  Dick Porter  <[email protected]>

	* HtmlImageTest.cs: Unit tests for HtmlImage

2005-08-04  Dick Porter  <[email protected]>

	* DataGridColumnTest.cs: Tests for DataGridColumn

2005-07-29  Dick Porter  <[email protected]>

	* RadioButtonTest.cs: Added tests for RadioButton

2005-07-14  Dick Porter  <[email protected]>

	* CheckBoxTest.cs: Added enum checks

2005-07-13  Dick Porter  <[email protected]>

	* CheckBoxTest.cs: Added tests for CheckBox - currently all
	passing on mono and ms runtimes.

2005-07-14  Dick Porter  <[email protected]>

	* HttpPostedFile.cs: New basic implementation; needs someone to
	figure out what a HttpRequestStream does

2005-08-18  Dick Porter  <[email protected]>

	* HtmlTable.cs, HtmlInputButton.cs, HtmlInputFile.cs, HtmlHead.cs,
	HtmlInputImage.cs, HtmlForm.cs, HtmlInputText.cs,
	HtmlInputCheckBox.cs, HtmlAnchor.cs, HtmlInputRadioButton.cs,
	HtmlButton.cs, HtmlInputHidden.cs, HtmlTextArea.cs,
	HtmlTableRow.cs, HtmlSelect.cs, HtmlControl.cs, HtmlTitle.cs,
	HtmlContainerControl.cs: 2.0 API fixes and stubs and attribute fixes

2005-08-09  Dick Porter  <[email protected]>

	* HtmlSelect.cs: Clear databindings when adding a new one; cope
	with assorted combinations of empty text and value fields; write
	<option> tags manually to match ms HTML output.  All fix nunit
	tests.

2005-08-05  Dick Porter  <[email protected]>

	* HtmlSelect.cs: Fix databinding when one or other of Name and
	Value aren't supplied (thanks to Peter for the patch); Make
	<option> indenting match ms output.

2005-07-29  Dick Porter  <[email protected]>

	* HtmlForm.cs: Simplify the rendering code by using QueryStringRaw
	instead of building the query string by hand

2005-07-27  Dick Porter  <[email protected]>

	* HtmlInputCheckBox.cs: New implementation

2005-07-26  Dick Porter  <[email protected]>

	* HtmlSelect.cs: New implementation

2005-07-24  Dick Porter  <[email protected]>

	* HtmlForm.cs: Add the trailing query string to the form action;
	fixes bug shown in Test/standalone/htmlform/qs_postback.aspx

2005-07-22  Dick Porter  <[email protected]>

	* HtmlInputFile.cs: Add assembly attributes

2005-07-21  Dick Porter  <[email protected]>

	* HtmlImage.cs: The src attribute needs to be a relative URL;
	close the HTML element when rendering attributes, to match the MS
	impl.

	* HtmlForm.cs: Added assembly attributes; don't render ID twice;
	don't render enctype and target if they are empty strings;
	implement a Render overload to keep corcompare quiet.

2005-07-19  Dick Porter  <[email protected]>

	* HtmlImage.cs: Added attributes; use Int32.Parse instead of
	Convert.ToInt32

2005-07-14  Dick Porter  <[email protected]>

	* HtmlInputFile.cs: New implementation

2005-07-14  Dick Porter  <[email protected]>

	* HtmlForm.cs: New Implementation

2005-07-07  Dick Porter  <[email protected]>

	* HtmlImage.cs: New implementation

2005-08-18  Dick Porter  <[email protected]>

	* ControlCachePolicy.cs, PersistChildrenAttribute.cs,
	UserControl.cs, DesignerDataBoundLiteralControl.cs,
	PageStatePersister.cs, DataBoundLiteralControl.cs, Control.cs,
	BasePartialCachingControl.cs, LiteralControl.cs: 2.0 API fixes and
	stubs and attribute fixes

2005-08-11  Dick Porter  <[email protected]>

	* CssStyleCollection.cs: Tweak the css string format to pass a
	unit test

	* AttributeCollection.cs: Don't NRE if someone sets the "style"
	attribute to null.

2005-08-05  Dick Porter  <[email protected]>

	* HtmlTextWriter.cs: Make <option> tags render inline, to match
	the ms output

2005-07-07  Dick Porter  <[email protected]>

	* StateBag.cs: Added internal SetDirty (void) method to fix the
	build

2005-08-18  Dick Porter  <[email protected]>

	* PageAdapter.cs, ControlAdapter.cs: 2.0 stubs

2005-08-18  Dick Porter  <[email protected]>

	* Consts.cs: Added System.Web and Microsoft.VisualStudio.Web
	constants for 2.0

2005-08-18  Dick Porter  <[email protected]>

	* Button.cs, DetailsView.cs, Xml.cs, Table.cs, Menu.cs,
	DataControlButton.cs, Label.cs, ObjectDataSource.cs, CheckBox.cs,
	RadioButton.cs, ListControl.cs, Image.cs, SiteMapPath.cs,
	BaseDataList.cs, DataList.cs, BulletedList.cs,
	DataBoundControl.cs, Login.cs, GridView.cs,
	CompositeDataBoundControl.cs, Wizard.cs, BaseValidator.cs,
	TextBox.cs, CheckBoxList.cs, RadioButtonList.cs, FormView.cs,
	AdRotator.cs, Repeater.cs, MenuItemTemplateContainer.cs,
	DropDownList.cs, HyperLink.cs, ImageMap.cs, MultiView.cs,
	CompositeControl.cs, HierarchicalDataBoundControl.cs, Calendar.cs,
	ListBox.cs, TableCell.cs, WebControl.cs, Literal.cs,
	BaseDataBoundControl.cs, ValidationSummary.cs, ImageButton.cs,
	LinkButton.cs, TreeView.cs: 2.0 API fixes and stubs, and attribute
	fixes

2005-08-11  Dick Porter  <[email protected]>

	* CheckBox.cs: Let ViewState manage removals; apply styles and
	"style" attributes in a surrounding <span>.  Fixes unit tests.

2005-08-05  Dick Porter  <[email protected]>

	* CheckBox.cs: Shut corcompare up a bit more.  Still need to
	figure out how to not use AddAttributesToRender to get it
	completely silent.

	* ButtonColumn.cs: Implement Initialize() and InitializeCell()

	* DataGridColumn.cs: Added the duplicate viewstate manipulation
	methods

2005-08-04  Dick Porter  <[email protected]>

	* DataGridColumn.cs: New implementation

	* DataGrid.cs: 
	* DataGridColumnCollection.cs: Set the DataGridColumn's owner

2005-07-29  Dick Porter  <[email protected]>

	* RadioButton.cs: Hide nonstandard API; remove GroupName from the
	ViewState when it is null.

	* CheckBox.cs: Hide nonstandard API

2005-07-22  Dick Porter  <[email protected]>

	* BoundColumn.cs: 
	* ButtonColumn.cs: Initial stubs

2005-07-22  Dick Porter  <[email protected]>

	* RadioButton.cs:
	* CheckBox.cs: Add assembly attributes

2005-07-13  Dick Porter  <[email protected]>

	* CheckBox.cs: Reverted Ben's enum-to-int ViewState change, remove
	null Text properties from the ViewState, test for TextAlign being
	out of range.  All to make tests pass on both mono and ms
	runtimes.

2005-07-12  Dick Porter  <[email protected]>

	* RadioButton.cs: New implementation

	* CheckBox.cs: Rearrange the attributes rendering to allow
	RadioButton to derive from this

2005-07-11  Dick Porter  <[email protected]>

	* CheckBox.cs: New implementation

	* RadioButton.cs: Initial stubbed version that just compiles

2005-07-08  Dick Porter  <[email protected]>

	* TextAlign.cs: 
	* BorderStyle.cs: Added

svn path=/trunk/mcs/; revision=48915
2005-08-26 22:21:30 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Lluis Sanchez 833d48dadb 2005-04-21 Lluis Sanchez Gual <[email protected]>
* FormViewDeleteEventArgs.cs:
	* FormViewInsertEventArgs.cs:
	* FormViewUpdateEventArgs.cs:
	* FormViewDeletedEventArgs.cs:
	* FormViewUpdatedEventArgs.cs:
	* FormViewInsertedEventArgs.cs: Implemented some missing properties.
	
	* LinkButton.cs:
	* IButtonControl.cs:
	* Button.cs: Removed SoftKey property.
	
	* CheckBox.cs: Don't try to load post back data if the control
	is disabled.
	
	* ImageField.cs:
	* AutoGeneratedField.cs:
	* DataControlField.cs:
	* CommandField.cs:
	* ButtonFieldBase.cs:
	* BoundField.cs:
	* CheckBoxField.cs:
	* TemplateField.cs:
	* ButtonField.cs: Don't bind fields in Insert state.
	Implemented CreateField and CopyProperties.
	
	* GridView.cs:
	* DetailsView.cs: Removed some unneeded interfaces. Don't
	generate the field rows if there are no items in the data source.
	Don't get the current keys until the whole control has been
	bound.

	* DetailsViewInsertedEventArgs.cs:
	* DataBoundControl.cs:	
	* ObjectDataSourceView.cs: Made some methods private.
	
	* MenuItemStyle.cs:
	* Menu.cs: Changed some properties from int to Unit.
	
	* DataControlButton.cs: javascript prefix is needed when raising
	the postback event from a link.
	
	* PagedDataSource.cs: Some fixes in Count and IsLastPage properties.
	The result was wrong when the total data source count was 0.
	
	* FormView.cs: Implemented.
	* FormViewRow.cs: Implemented.
	
	* Literal.cs:
	* Localize.cs: Fixed base interface.
	
	* BaseDataBoundControl.cs: In DataBind() call the base class
	DataBind method, so the binding context is properly set.


svn path=/trunk/mcs/; revision=43410
2005-04-21 16:14:46 +00:00
Lluis Sanchez 170d79ed12 2005-03-11 Lluis Sanchez Gual <[email protected]>
* Button.cs, ImageButton.cs: Interpret PostBackOptions.ClientSubmit
	  correctly.
	* CommandField.cs: Mostly implemented.
	* Menu.cs: Use callback methods moved to ClientScriptManager.
	* DataControlButton.cs: Internal control used to implement buttons
	  for navigating in data bound controls.
	* DataControlField.cs, PagerSettings.cs: Use the new DataControlButton
	  to render the column headers.
	* CheckBox.cs, RadioButton.cs, BulletedList.cs, TextBox.cs
	  DropDownList.cs, Calendar.cs, ListBox.cs, LinkButton.cs, TreeView.cs:
	  Don't use Page.GetPostBackClientEvent
	  since it is deprecated in 2.0.
	* GridView.cs: Implemented some several interfaces.
	  Implemented support client sorting and page navigation (using callbacks).
	  Implemented the autogenerated command column using the new CommandField
	  class.
	* ButtonFieldBase.cs: Implemented.
	* GridView.js: New helper script to support client side sorting and
	  paging in the grid view.


svn path=/trunk/mcs/; revision=41698
2005-03-11 13:25:26 +00:00
Lluis Sanchez 9021c6864b 2005-02-10 Lluis Sanchez Gual <[email protected]>
* Button.cs: Use validation group when validating page.
	* XmlDataSourceView.cs: Implemented ExecuteSelect.
	* Menu.cs: Minor fix.
	* CheckBox.cs: Added 2.0 properties and methods.
	* BaseDataList.cs: Always databind the control if view state
	is not enabled.
	* DataList.cs: In 2.0, use control state to save the selected index.
	* DetailsViewUpdatedEventArgs.cs: Fix typo.
	* CustomValidator.cs: Implement IStaticTextControl interface.
	* CheckBoxList.cs: Added missing 2.0 methods.
	* DropDownList.cs: Added missing 2.0 methods. Implemented ITextControl
	interface.
	* XmlDataSource.cs: Return childs of DocumentElement, not the root
	document.
	* DayRenderEventArgs.cs, CompareValidator.cs, DataListItem.cs:
	Implemented 2.0 API.
	


svn path=/trunk/mcs/; revision=40379
2005-02-10 09:37:42 +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
Gonzalo Paniagua Javier 2da43bb63d 2005-01-20 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: when rendering the input tag inside a span tag, keep the
	attributes that are meant to be in the input tag in their place.


svn path=/trunk/mcs/; revision=39271
2005-01-20 20:24:25 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Alon Gazit 152039aa97 change the implementation of LoadPostData.
Currently, while the AutoPostBack property equals true ,
it isn't possible to perform uncheck.

svn path=/trunk/mcs/; revision=21535
2003-12-29 09:03:41 +00:00
Alon Gazit f31e57c21c Disabled CheckBox does not produce same HTML as .NET.
In .NET if the checkbox is disabled ,its text appears disabled too.
In Mono the text appears enabled. the fix is in Render().

svn path=/trunk/mcs/; revision=21167
2003-12-15 13:19:33 +00:00