33 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 9b6ca247de 2010-07-13 Marek Habersack <[email protected]>
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
	is not part of the official API. MultiSelect capability validation
	is performed using an internal virtual method MultiSelectOk ().

	* BaseDataList.cs: OnPagePreLoad is not part of the official API

	* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
	ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
	property.

svn path=/trunk/mcs/; revision=160305
2010-07-13 17:45:17 +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 609922272f 2009-10-02 Marek Habersack <[email protected]>
* DynamicValidator.cs: initial implementation

	* DynamicDataManager.cs: implemented OnLoad.
	Better implementation of RegisterControl

	* DynamicDataExtensions.cs: implemented FindDataSourceControl.

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

	* DynamicValidatorTest.cs: added.

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

	* GridView.cs: added two 3.5 properties - SelectedPersistedDataKey
	and IPersistedSelector.DataKey.

	* BaseDataBoundControl.cs: slight optimizations to FindDataSource

svn path=/trunk/mcs/; revision=143278
2009-10-02 11:35:41 +00:00
Marek Habersack 0907975508 2008-05-30 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
	DataControlFieldCollection.cs, DataControlField.cs,
	PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
	event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
	DefaultAuthenticationModule.cs, MembershipProvider.cs,
	WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
	RoleManagerModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
	TraceContext.cs: do not use synthetized event accessors (to avoid
	locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ProfileModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
	use synthetized event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ClientBuildManager.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* CacheDependency.cs: do not use synthetized event accessors (to
	avoid locks).


svn path=/trunk/mcs/; revision=104569
2008-05-30 22:20:14 +00:00
Marek Habersack 61a57fcc94 typo
svn path=/trunk/mcs/; revision=75428
2007-04-05 11:41:44 +00:00
Marek Habersack 0879723fa1 2007-04-05 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs: restore the LAMESPEC note and code it
	describes - tests show this is what's happening on MS.NET as
	well.

svn path=/trunk/mcs/; revision=75425
2007-04-05 11:25:05 +00:00
Igor Zelmanovich 627c448387 2007-04-05 Igor Zelmanovich <[email protected]>
* GridView.cs:
	* BaseDataBoundControl.cs:
	Break recursion when the property is set from within the OnSelect handler 
	in user's code. fixes bug #81175.	

svn path=/trunk/mcs/; revision=75422
2007-04-05 10:54:30 +00:00
Marek Habersack 5285d8a5b4 2007-04-03 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs: adjust for lame specs on MSDN.

svn path=/trunk/mcs/; revision=75386
2007-04-04 13:47:07 +00:00
Igor Zelmanovich 9bec2e6a92 2007-03-20 Igor Zelmanovich <[email protected]>
* BaseDataBoundControl.cs: fix as per MSDN - the property is set
	only if data binding doesn't occur.

svn path=/trunk/mcs/; revision=74696
2007-03-20 15:58:06 +00:00
Marek Habersack 858d3a2e97 Revert the change as it causes 3 tests to fail, need to run tests on Windows first.
svn path=/trunk/mcs/; revision=74685
2007-03-20 13:40:35 +00:00
Marek Habersack beabee8a4f 2007-03-20 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs: fix as per MSDN - the property is set
	only if data binding doesn't occur.

	* DataBoundControl.cs: avoid endless recursion here. Fixes bug #81175


svn path=/trunk/mcs/; revision=74679
2007-03-20 12:16:16 +00:00
Igor Zelmanovich 5576172362 2007-03-05 Igor Zelmanovich <[email protected]>
* BaseDataBoundControl.cs:
	* DataBoundControl.cs:
	* HierarchicalDataBoundControl.cs:
	refactoring: DataBoundControl and HierarchicalDataBoundControl use internal
	method in BaseDataBoundControl to find a data source control.


svn path=/trunk/mcs/; revision=73715
2007-03-05 14:58:20 +00:00
Marek Habersack 53d54edc22 Implement correct DataSourceID lookup
svn path=/trunk/mcs/; revision=73669
2007-03-04 01:04:37 +00:00
Igor Zelmanovich 96e8820c67 2007-02-27 Igor Zelmanovich <[email protected]>
* BaseDataBoundControl.cs: setting DataSource to null does not 
	call ValidateDataSource.
	* HierarchicalDataBoundControl.cs: ValidateDataSource does not 
	throw exception if argument is null. 


svn path=/trunk/mcs/; revision=73475
2007-02-27 15:52:33 +00:00
Igor Zelmanovich 5331271f14 2007-01-31 Igor Zelmanovich <[email protected]>
* BaseDataBoundControl.cs:
	* DataBoundControl.cs:
	fixed DataBinding flow: RequiresDataBinding is set to false in 
	PerformSelect().			
	* HierarchicalDataBoundControl.cs: implemented MarkAsDataBound().

svn path=/trunk/mcs/; revision=72014
2007-01-31 08:50:36 +00:00
Igor Zelmanovich 49be1ef88a 2007-01-01 Igor Zelmanovich <[email protected]>
* BaseDataBoundControl.cs:
	* CompositeDataBoundControl.cs: fixed DataBinding flow.

svn path=/trunk/mcs/; revision=70319
2007-01-01 16:13:44 +00:00
Igor Zelmanovich cc6e7588a9 2006-11-14 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: Rows property, DataBinding flow.
	* DataBoundControl.cs:
	* BaseDataBoundControl.cs:		
	

svn path=/trunk/mcs/; revision=67854
2006-11-14 17:18:01 +00:00
Konstantin Triger 77ae186fa2 ensure the control is bound if ViewState is disabled
svn path=/trunk/mcs/; revision=59838
2006-04-25 07:59:11 +00:00
Konstantin Triger 9c61d86aa0 ensure rebinding when FormView.PageIndex is called
svn path=/trunk/mcs/; revision=59688
2006-04-20 09:15:05 +00:00
Sebastien Pouliot 9c6f49799f 2005-09-21 Sebastien Pouliot <[email protected]>
* AdCreatedEventArgs.cs: Added declarative security (Link and, for 
	2.0, Inheritance demands) for Minimal.
	* BaseCompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseDataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseValidator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* BoundColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* ButtonColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CalendarDay.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CheckBoxList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* CustomValidator.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.
	* DataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataGridItemCollection.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataKeyCollection.cs: Added declarative security (LinkDemands) for 
	Minimal.
 	* DataListItemCollection.cs: Added declarative security (LinkDemands) 
	for Minimal.
	* DataListItem.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* FontNamesConverter.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* HyperLink.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* HyperLinkColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* Image.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.


svn path=/trunk/mcs/; revision=50392
2005-09-21 17:24:38 +00:00
Chris Toshok 916c48409b 2005-09-05 Chris Toshok <[email protected]>
* BaseDataBoundControl.cs (DataSourceID): testing reveals this is
	stored in the ViewState.


svn path=/trunk/mcs/; revision=49514
2005-09-05 23:25:10 +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
Kornél Pál 83946b2158 Replaced assembly references with constants in Consts.cs.
svn path=/trunk/mcs/; revision=47823
2005-07-28 23:46:29 +00:00
Lluis Sanchez af7e54758c 2005-06-06 Lluis Sanchez Gual <[email protected]>
* GridView.cs:
	* FormView.cs:
	* DetailsView.cs: Bind the control after creating all child
	 controls.
	* DataBoundControl.cs: Call OnDataBinding and OnDataBound in
	the correct methods.
	* BaseDataBoundControl.cs: Don't call DataBind nor OnDataBound
	in this class. This is done in DataBoundControl. All this fixes
	bug #75076.


svn path=/trunk/mcs/; revision=45481
2005-06-06 11:29:51 +00:00
Lluis Sanchez fb0ff612f6 2005-05-06 Lluis Sanchez Gual <[email protected]>
* TreeNode.cs:
	* TreeView.cs:
	* Menu.cs: Implemented some new properties from beta 2.
	
	* DataControlButton.cs: Render the ControlStyle if it
	is not empty.
	
	* UnitConverter.cs:
	* FontUnitConverter.cs: Improved the conversion to InstanceDescriptor.
	It will now generate an object creation, instead of a Parse call. 
	
	* GridViewCommandEventArgs.cs: Added missing property.
	* SubMenuStyleCollection.cs: This class is not sealed.
	* MultiView.cs: Set Visible=false to all views that are not
	shown. This ensures that it's view state is saved. 
	
	* BaseDataBoundControl.cs:
	* GridViewDeletedEventArgs.cs: Minor api fixes.
	
	* FormViewDeleteEventArgs.cs:
	* DetailsViewDeletedEventArgs.cs:
	* ListControl.cs: Fix warnings.
	
	* CircleHotSpot.cs
	* HotSpot.cs
	* HotSpotCollection.cs
	* ImageMap.cs
	* PolygonHotSpot.cs
	* RectangleHotSpot.cs
	* WizardStepCollection.cs : Implemented.
	
	* WizardStep.cs
	* WizardStepBase.cs
	* Wizard.cs: Initial implementation.


svn path=/trunk/mcs/; revision=44148
2005-05-06 16:41:50 +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 6813c16ab1 2005-03-04 Lluis Sanchez Gual <[email protected]>
* DataKey.cs: Implemented.
	* XmlDataSourceView.cs: Implemented support for row pagging.
	* Table.cs: Fixed attribute value.
	* DataControlField.cs: Added support for sorting headers.
	* ChildTable.cs: Created.
	* ListControl.cs: Delay selection assignment, since control state
	is now loaded before view state.
	* GridViewDeleteEventArgs.cs, GridViewUpdateEventArgs.cs,
	GridViewDeletedEventArgs.cs, GridViewUpdatedEventArgs.cs: Implemented
	several missing properties.
	* PagerSettings.cs: Fully implemented.
	* BaseDataList.cs: Added null check.
	* GridView.cs: Implemented more functionality.
	* BoundField.cs: Added support for cell editing.
	* StringArrayConverter.cs: Implemented.
	* DataKeyArray.cs: Implemented.
	* BaseDataBoundControl.cs: Reset the requires binding flag before
	executing the query. This avoids recursive query calls.
	* GridViewRow.cs: Handler commands raised from row childs.


svn path=/trunk/mcs/; revision=41455
2005-03-04 18:05:31 +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 0991e0512b 2005-02-16 Lluis Sanchez Gual <[email protected]>
* HyperLinkColumn.cs, Label.cs: Added missing 2.0 properties.
	* RadioButton.cs: Added missing 2.0 methods.
	* ListItem.cs: Added Enabled property.
	* MailMessageEventArgs.cs: Use the correct message class.
	* ListControl.cs: Implemented missing properties and support for
	control state. Implemented base RenderContents method.
	* Image.cs: Implemented DescriptionUrl and GenerateEmptyAlternateText
	properties.
	* BaseCompareValidator.cs: Implemented methods that support conditional
	use of the invariant culture.
	* DataBoundControl.cs: Set RequiresDataBinding to true in OnLoad.
	* SqlDataSourceCommandEventArgs.cs, SqlDataSourceStatusEventArgs.cs:
	It takes a DbCommand instead of a IDbCommand.
	* GridViewSortEventArgs.cs: Added SortDirection property.
	* TextBox.cs, CheckBoxList.cs: Added protected version of
	IPostBackDataHandler methods.
	* RadioButtonList.cs: Added protected version of
	IPostBackDataHandler and IRepeatInfoUser methods.
	* Repeater.cs: Updated some method names.
	* DropDownList.cs:  Added protected version of
	IPostBackDataHandler methods. Reuse RenderContents from base class.
	* RepeaterItem.cs, Localize.cs, Literal.cs: Fix inheritance.
	* GridViewUpdatedEventArgs.cs: Fix typo.
	* ListBox.cs: Added protected version of IPostBackDataHandler methods.
	Reuse RenderContents from base class.
	* BaseDataBoundControl.cs: Several fixes.
	* ImageButton.cs, LinkButton.cs: Implemented several 2.0 properties.


svn path=/trunk/mcs/; revision=40772
2005-02-16 20:42:06 +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 7cd5b5fde6 2004-11-26 Lluis Sanchez Gual <[email protected]>
* TreeNodeBindingCollection.cs: Implemented.
	* TreeNodeBinding.cs: Implemented.
	* TreeNode.cs: Added support for data binding.
	* TreeView_Default_Collapse.gif, TreeView_Default_Expand.gif
	  TreeView_Default_NoExpand.gif: Moved to resources directory.
	* ListControl.cs: Fixed api.
	* XmlHierarchicalEnumerable.cs: Made internal.
	* DataBoundControl.cs: Modified api to match latest ms.net.
	* TreeView.js: New javascript file to support TreeView in the client.
	* XmlDataSource.cs: Added missing attributes.
	* HierarchicalDataBoundControl.cs: Mostly implemented.
	* BaseDataBoundControl.cs: Mostly implemented.
	* XmlHierarchyData.cs: Made internal.
	* TreeView.cs: Mostly implemented. The major missing feature is
	  client side tree population.


svn path=/trunk/mcs/; revision=36652
2004-11-26 16:42:35 +00:00
Lluis Sanchez 058e32506b 2004-11-23 Lluis Sanchez Gual <[email protected]>
* TreeNodeBindingCollection.cs, TreeNodeBinding.cs, TreeNode.cs,
	TreeNodeCollection.cs, TreeNodeStyleCollection.cs, TreeNodeStyle.cs,
	TreeView.cs: Initial implementation.
	* DataBoundControl.cs: Set the correct base class.
	* HierarchicalDataBoundControl.cs, BaseDataBoundControl.cs: Created stub.
	* TreeNodeSelectAction.cs: Formatting.
	* TreeView_Default_Collapse.gif, TreeView_Default_Expand.gif,
	TreeView_Default_NoExpand.gif: TreeView images.


svn path=/trunk/mcs/; revision=36429
2004-11-23 10:39:10 +00:00