Commit Graph
44 Commits
Author SHA1 Message Date
Marek Habersack f9aca58e82 4.0/2.0 metadata updates + some test updates
svn path=/trunk/mcs/; revision=160378
2010-07-14 19:46:01 +00:00
Marek Habersack 221a24b979 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159333
2010-06-22 12:26:13 +00:00
Marek Habersack fef40778a9 2009-09-28 Marek Habersack <[email protected]>
* DataBoundControl.cs: Initialize sets RequiresDataBinding
	properly, only when we're not data-bound already, when we aren't
	in postback or when we are in postback, but with viewstate
	enabled. Fixes bug #542076

svn path=/trunk/mcs/; revision=142798
2009-09-28 21:41:52 +00:00
Marek Habersack 9743d97ec8 2009-06-16 Marek Habersack <[email protected]>
* RouteValueDictionaryExtensions.cs: do not compile if
	SYSTEMCORE_DEP is not defined

	* PatternParser.cs: if SYSTEMCORE_DEP is not defined, do not
	compile parts which require RouteValueDictionaryExtensions.

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

	* Makefile (LIB_MCS_FLAGS): define SYSTEMCORE_DEP

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

	* DynamicDataManager.cs, DynamicDataExtensions.cs: use new
	DataBoundControl.DataSourceObject instead of
	InternalGetDataSource

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

	* Makefile: warn if the 4.0 assembly is compiled without
	System.Core

svn path=/trunk/mcs/; revision=136222
2009-06-16 13:48:30 +00:00
Marek Habersack 2ad931f695 2009-06-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: use faster String.Compare overloads.

	* HtmlHead.cs: implemented 4.0 properties Description and
	Keywords.

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

	* IPersistedSelector.cs: removed AspNetHostingPermission
	attributes from the 4.0 profile.

	* IDataBoundControl.cs, IDataBoundItemControl.cs,
	IDataBoundListControl.cs, IFieldControl.cs: added

	* DetailsView.cs: control implements 4.0 IDataBoundItemControl
	interface.

	* DataBoundControl.cs: implemented 4.0 property DataSourceObject
	and made the InternalPerformDataBinding method internal for the
	4.0 profile.

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

	* net_4_0_System.Web.dll.sources:
	Added
	System.Web.UI.WebControls/IDataBoundControl.cs,
	System.Web.UI.WebControls/IDataBoundItemControl.cs,
	System.Web.UI.WebControls/IDataBoundListControl.cs,,
	System.Web.UI.WebControls/IFieldControl.cs

svn path=/trunk/mcs/; revision=136192
2009-06-16 01:46:33 +00:00
Marek Habersack 30140fbbfd 2009-04-29 Marek Habersack <[email protected]>
* MetaTable.cs: implemented the DataContextType,
    	DataContextPropertyName properties and the ToString method.

    	* MetaColumn.cs: implemented the Scaffold, DisplayName,
    	SortExpression, UIHint properties and the ToString method.

    	* DynamicField.cs: implemented

    	* DynamicDataManager.cs: partially implemented RegisterControl.
    	Added internal AutoFieldGenerator class, used by RegisterControl
    	when dealing with GridView.
    	Implemented some properties.

    	* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable

    	* DynamicControl.cs: implemented parts of the class.

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBoundControl.cs: added InternalGetDataSource method, used by
    	DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* AssemblyInfo.cs: added InternalsVisibleTo for
    	System.Web.DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
    	added

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/DynamicDataManagerTest.cs,
    	System.Web.DynamicData/DynamicDataExtensionsTest.cs,
    	System.Web.DynamicData.ModelProviders/TableProviderTest.cs

    	* System.Web.DynamicData.dll.sources: added
    	System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
    	removed
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs

    2009-04-29  Marek Habersack  <[email protected]>

    	* TableProvider.cs: implemented

    	* DLinqDataModelProvider.cs: renamed from
    	DLinqDataModelProviders.cs and moved some classes to separate
    	files.

    	* DLinqTableProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqColumnProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqAssociationProvider.cs: added

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBinder.cs: GetPropertyValue must throw also if propName is
    	empty.

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfiguration.cs: implemented all the methods and added a
    	parameterless constructor.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/ContextConfigurationTest.cs

    	* Makefile: tests need to be linked with
    	System.ComponentModel.DataAnnotations.dll

    2009-04-23  Marek Habersack  <[email protected]>

    	* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
    	real functionality yet.

    	* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
    	all the methods.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.ComponentModel.DataAnnotations_test.dll.sources: added

    	* System.ComponentModel.DataAnnotations.dll.sources: added
    	System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs

    	* Makefile: enabled tests

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfigurationTest.cs: added

svn path=/trunk/mcs/; revision=133003
2009-04-29 13:17:39 +00:00
Marek Habersack 071470bef4 2008-10-14 Marek Habersack <[email protected]>
* Control.cs: SaveViewStateRecursive must return view state even
	if EnableViewState is false. This is apparently what .NET does, as
	some commercial ASP.NET controls take advantage of that via
	reflection.

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

	* CompositeDataBoundControl.cs: renamed the itemcount ViewState
	item from "_ItemCount" to "_!ItemCount" for .NET
	compatibility. This item is accessed and used by some commercial
	ASP.NET controls.

	* DataBoundControl.cs: OnPagePreLoad must force databinding also
	when the request is not a postback.

svn path=/trunk/mcs/; revision=115766
2008-10-14 11:36:32 +00:00
Marek Habersack 38884c1825 2008-08-25 Marek Habersack <[email protected]>
* DataBoundControl.cs:
	Do not reconnect to the data source if we already have a valid one

svn path=/trunk/mcs/; revision=111572
2008-08-25 20:39:29 +00:00
Marek Habersack 902c0d2af3 2008-08-25 Marek Habersack <[email protected]>
* DataBoundControl.cs: set RequiresDataBinding to true in
	Initialize only if not in a postback, if not data bound and if the
	view state is enabled. Fixes bug #398318
	UpdateViewData removes the OnDataSourceViewChanged handler before
	connecting to the datasource and restores it before returning to
	the caller.
	OnLoad gets the data source before initialization, to avoid
	premature OnDataSourceViewChanged triggers. Fixes bug #398318

svn path=/trunk/mcs/; revision=111526
2008-08-25 10:48:28 +00:00
Dean Brettle b14ff24d34 ++ class/System.Web/Test/mainsoft/ChangeLog (working copy)
* NunitWebResources/adapters.browser, 
	NunitWebResources/TestCapability.browser: modified to work and
	support tests of browser defs in 
	etc/mono/2.0/Browsers/Compat.browser.

++ class/System.Web/Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added tests to ensure browscap.ini
	etc/mono/2.0/Browsers/Compat.browser are being used when there
	are App_Browser/*.browser files.

++ class/System.Web/Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControlTest.cs, HierarchicalDataBoundControlTest.cs,
	WebControlTest.cs: added tests to ensure that using a 
	ControlAdapter that is not of the type corresponding to the 
	control doesn't	cause a cast error.

++ class/System.Web/System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
	use etc/mono/2.0/Browser/*.browser files in addition to 
	~/App_Browsers/*.browser files.

++ class/System.Web/System.Web.UI/ChangeLog	(working copy)

	* Page.cs (PageAdapter): fixed cast error when a ControlAdapter that
	wasn't a PageAdapter was used.

++ class/System.Web/System.Web.Configuration_2.0/ChangeLog	(working copy)

	* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
	nBrowser/Build.cs (Process): Added initialCapabilities argument to 
	facilitate using browscap.ini capabilities.
	
	* CapabilitiesResult.cs (ctor), nBrowserResult.cs (ctor): Change 
	items arg to IDictionary to	facilitate using browscap.ini capabilities.
	
	* nBrowser/Node.cs (Reset): Removed code which checked prohibited 
	non-alphanumerics in id attributes because .NET is not that strict.
	
	* nBrowser/Node.cs (MergeFrom): Fixed NullReferenceExceptions that
	occurred when the source or destination node did not have any
	capabilities or adapters.
	
	* nBrowser/Result.cs (AddAdapter): Fixed to allow types in other
	assemblies.

++ class/System.Web/System.Web.UI.WebControls/ChangeLog	(working copy)

	* DataBoundControl.cs (InternalPerformDataBinding), 
	HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
	WebControl.cs (Render): fixed cast errors when a ControlAdapter
	that wasn't of the type corresponding to the control was used.

++ class/System.Web/System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs (GetConfigCapabilities): changed to use
	browscap.ini for default capabilities when *.browser files are
	present, so we don't need to maintain browser capabilities in two
	places.


svn path=/trunk/mcs/; revision=100150
2008-04-08 21:16:00 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

	* Makefile (TEST_RESOURCE_FILES): added 
		Test/mainsoft/NunitWebResources/PageWithAdapter.aspx

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Igor Zelmanovich 25f25dd97a 2007-09-06 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed DataBind flow:
	prevent double binding when not necessary.
	fixed bug #81146	


svn path=/trunk/mcs/; revision=85409
2007-09-06 12:15:02 +00:00
Marek Habersack 5235b076f1 Revert r84984 and r85314
svn path=/trunk/mcs/; revision=85335
2007-09-05 08:54:41 +00:00
Marek Habersack e8d7450ffa 2007-09-04 Marek Habersack <[email protected]>
* DataBoundControl.cs: make sure no data binding is done after
            OnPagePreload has executed.

            * ListControl.cs: whenever a property that can affect data binding
            is set, make sure to set RequiresDataBinding.

svn path=/trunk/mcs/; revision=85314
2007-09-04 18:48:11 +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
Igor Zelmanovich 86fa72803b 2007-02-05 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs:
	* DetailsView.cs:
	* FormView.cs:
	PerformDataBinding is called with RequiresDataBinding was set false

svn path=/trunk/mcs/; revision=72300
2007-02-05 15:22:55 +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 eda68f018a 2006-01-04 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed Init flow.	 


svn path=/trunk/mcs/; revision=70469
2007-01-04 12:45:19 +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
Igor Zelmanovich e0bf3da519 2006-11-09 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed: 
	ConfirmInitState method s called by 
	the DataBoundControl class in its OnLoad method.


svn path=/trunk/mcs/; revision=67526
2006-11-08 14:31:21 +00:00
Igor Zelmanovich e253084fbb 2006-10-29 Igor Zelmanovich <[email protected]>
* DataBoundControl: fixed: ValidateDataSource allows null as dataSource.


svn path=/trunk/mcs/; revision=67083
2006-10-29 13:22:47 +00:00
Igor Zelmanovich df51549965 2006-10-17 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed: DataBind calls
	CreateDataSourceSelectArguments() and stores result in 	SelectArguments


svn path=/trunk/mcs/; revision=66754
2006-10-17 16:44:51 +00:00
Igor Zelmanovich 2930fff01a 2006-10-10 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed: DataBind flow
	CreateDataSourceSelectArguments() is called 
	each time as DataBind() is called	


svn path=/trunk/mcs/; revision=66505
2006-10-10 11:53:29 +00:00
Igor Zelmanovich 85c92b5c75 2006-09-25 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed: DataBind flow
	GetData return "empty" DataSourceView when no DataSource and DataSourceID
	was assigned to cause PerformDataBinding be called. 	
		

svn path=/trunk/mcs/; revision=65880
2006-09-25 11:48:43 +00:00
Konstantin Triger fd9a34a86e * DataBoundControl.cs: implement MarkAsDataBound and consider it while
setting RequiresDataBinding in OnLoad event.
* GridView.cs: DataBind rows before other control can access the data.
* BoundField.cs: add unique ID to control for postback parameters.

svn path=/trunk/mcs/; revision=62201
2006-07-03 13:56:24 +00:00
Chris Toshok c4b35a5494 2006-03-15 Chris Toshok <[email protected]>
* SiteMapDataSourceView.cs (OnDataSourceViewChanged): override.

	* SiteMapDataSource.cs (StartingNodeOffset): new property.
	(GetStartNode): add code to handle StartNodeOffset < 0.

	* CompositeControl.cs
	(ICompositeControlDesignerAccessor.RecreateChildControls): just
	call the non-iface method.

	* DataBoundControl.cs (GetDataSource): this is likely wrong, but
	traverse up the naming container tree looking for our datasource
	if we're bound using a DataSourceID.  This fixes things in the
	sitemap1 test, which uses a mixture of templates and
	ContentPlaceholders with the sitemapdatasource and sitemappath at
	different levels in the naming container tree (let along the
	itemnode template.)

	* SiteMapPath.cs (DataBind): implement this by chaining up to
	base.DataBind, then by looping over our children, emitting
	OnItemDataBound for each SiteMapNodeItem.
	(AddAttributesToRender): remove.
	(CreateChildControls): call DataBind as the final step here..  I
	have, of course, no idea if this is right.
	(CreateControlHierarchy): don't databind our children here, as
	they need to be in the Controls collection before we do.
	(RenderContents): render our accessibility/screenreader stuff
	here, if SkipLinkText != "".


svn path=/trunk/mcs/; revision=58030
2006-03-15 17:48:20 +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
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
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 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 2ea848c73e 2005-04-14 Lluis Sanchez Gual <[email protected]>
* DetailsView.cs: Implemented support for Insert operation. 
	Added header and footer templates. Added missing style
	properties. 
	* ObjectDataSourceView.cs: Use ParameterCollection.GetValues
	to get filter values. Other minor fixes.
	* CommandField.cs: Properly render the Insert and New buttons.
	* ObjectDataSource.cs: Update the parameter collections after
	the page is loaded. This will fire the ParameterChanged event
	if needed.
	* DataBoundControl.cs: The OnDataSourceViewChanged method
	is called when the view changes, not when the datasource
	changes.
	
	* DetailsViewInsertedEventArgs.cs:
	* DetailsViewInsertEventArgs.cs: Implement Values property.
	
	* ImageField.cs:
	* AutoGeneratedField.cs
	* BoundField.cs:
	* CheckBoxField.cs:
	Take into account the Insert mode.
	
	* ParameterCollection.cs: Implemented UpdateValues and fixed
	GetValues (values can't be cached because can change).
	* Parameter.cs: Detect value changes in GetValue, and fire
	the change event if needed. Removed unused ParameterValue
	property. Other fixes.


svn path=/trunk/mcs/; revision=42997
2005-04-14 12:24:07 +00:00
Lluis Sanchez e175537b2b 2005-02-25 Lluis Sanchez Gual <[email protected]>
* XmlDataSourceView.cs: ExecuteSelect now returns a list of
	XmlDataSourceNodeDescriptor instead of a list of nodes. In this way
	it is possible to query for properties fore each data item.
	* Menu.cs, TreeView.cs: Make sure that objects are correctly created
	when loading its view state.
	* DataControlField.cs: Implement properties using a StateBag.
	* XmlDataSourcePropertyDescriptor.cs: Implemented.
	* PagerSettings.cs: Mostly implemented.
	* AccessDataSourceView.cs, AccessDataSource.cs: Added security attribute.
	* DataBoundControl.cs: Added null check.
	* GridView.cs: Initial implementation.
	* CompositeDataBoundControl.cs: Implemented.
	* BoundField.cs: Initial implementation.
	* GridViewRowCollection.cs: Initial implementation.
	* DataControlFieldCollection.cs: Initial implementation.
	* DataControlFieldCell.cs: Fixed control tag.
	* GridViewRow: Initial implementation.
	* XmlDataSourceNodeDescriptor.cs: Implemented.


svn path=/trunk/mcs/; revision=41191
2005-02-25 12:08:35 +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
Sanja Gupta c07af6cb8a ChangeLog: Updated.
BaseDataList.cs:
DataBountControl.cs:
Repeater.cs: Added SelectArguments property and updated.
SiteMapDataSourceView.cs:
SqlDataSourceView.cs:
XmlDataSourceView.cs: Removed extra method, which was there to keep 
                      things compiling.


svn path=/trunk/mcs/; revision=36515
2004-11-25 04:20:53 +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
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Ben Maurer 19d8d5d139 2003-11-09 Ben Maurer <[email protected]>
* DataBoundControl.cs: Implement
	* ListControl.cs: inherit from the above.
	* Repeater.cs, BaseDataList.cs: should reset whenever we databind.

svn path=/trunk/mcs/; revision=19773
2003-11-10 00:15:45 +00:00