Commit Graph
1341 Commits
Author SHA1 Message Date
Marek Habersack b830b7548b 2008-12-01 Marek Habersack <[email protected]>
* Style.cs: WriteStyleAttributes must not use the fontinfo field
	directly, it has to be done via the Font property. Fixes bug
	#449793

svn path=/trunk/mcs/; revision=120345
2008-12-01 12:34:45 +00:00
Marek Habersack cd9089259b 2008-11-15 Marek Habersack <[email protected]>
* ContentPlaceHolder.cs, Content.cs, FormViewPagerRow.cs,
	ChangePassword.cs, DetailsViewPagerRow.cs: implements
	INonBindingContainer interface.

	* Wizard.cs: implement INonBindingContainer interface for several
	private/internal classes.

2008-11-15  Marek Habersack  <[email protected]>

	* INonBindingContainer.cs: added

	* Control.cs: BindingContainer now checks if a control implements
	INonBindingContainer interface in addition to the
	BINDING_CONTAINER mask check.

	* UserControl.cs: implements INonBindingContainer

	* ControlBuilder.cs: use the new INonBindingContainer interface to
	determine the binding container type in the BindingContainerType
	property. If TemplateBuilder's ContainerType implements that
	interface, the NamingContainer is queried for the binding
	container type. If ContainerType is null, we return our own
	ControlType (if we're TemplateBuilder)

2008-11-15  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.UI/INonBindingContainer.cs

svn path=/trunk/mcs/; revision=118917
2008-11-15 03:40:24 +00:00
Gonzalo Paniagua Javier 001f95bdae 2008-10-24 Gonzalo Paniagua Javier <[email protected]>
* ImageButton.cs: clicking an image causes a postback.
	Bug #439004 fixed.


svn path=/trunk/mcs/; revision=117065
2008-10-25 17:59:28 +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 726b2ef986 2008-10-21 Marek Habersack <[email protected]>
* XmlDataSource.cs: DataFile may be an URL.

svn path=/trunk/mcs/; revision=116667
2008-10-21 20:11:08 +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
Gert Driesen 5e14587425 Set eol-style to native.
svn path=/trunk/mcs/; revision=116361
2008-10-18 13:08:01 +00:00
Marek Habersack f3bc4a2f46 Use UNIX line endings consistently
svn path=/trunk/mcs/; revision=116241
2008-10-17 15:26:06 +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 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 8c1cedc902 2008-10-13 Marek Habersack <[email protected]>
* Table.cs, TableRowCollection.cs, TableRow.cs: render table
	sections when necessary. Fixes bug #434555

svn path=/trunk/mcs/; revision=115649
2008-10-13 11:23:32 +00:00
Atsushi Eno 9b7ec8f918 I forgot ChangeLog entry one month ago.
svn path=/trunk/mcs/; revision=115237
2008-10-08 16:11:16 +00:00
Marek Habersack 7bbd8d5027 2008-10-08 Marek Habersack <[email protected]>
* ControlParameter.cs: Evaluate calls DataBinder.Eval to do the
	evaluation now. This makes it support complex expressions.

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

	* DataBinder.cs: in Eval expression needs to be trimmed before
	checking whether it's an empty string.
	GetIndexedPropertyValue must explicitly look for the "Item"
	property, the lack of the DefaultMember attribute on type must not
	throw exceptions.

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

	* ControlParameterTest.cs: added a test for ControlParameter
	evaluating a complex property expression.

svn path=/trunk/mcs/; revision=115193
2008-10-08 10:31:17 +00:00
Sebastien Pouliot 48b518fdd7 2008-09-30 Sebastien Pouliot <[email protected]>
* RoleGroupCollection.cs: Fix recursive calls (wrong target)
	[Found using Gendarme's BadRecursiveInvocationRule]


svn path=/trunk/mcs/; revision=114474
2008-09-30 12:55:24 +00:00
Sebastien Pouliot 0481b077d0 2008-09-28 Sebastien Pouliot <[email protected]>
* XmlDataSource.cs: Make sure the result of the multiplication is a
	long (not an integer casted into a long since it could overflow).
	[Found using Gendarme's ReviewCastOnIntegerMultiplicationRule]


svn path=/trunk/mcs/; revision=114339
2008-09-28 17:47:34 +00:00
Juraj Skripsky 4cca7109cf 2008-09-17 Juraj Skripsky <[email protected]>
* RadioButton.cs (ValueAttribute, LoadPostData): Fixes bug #426959.


svn path=/trunk/mcs/; revision=113310
2008-09-17 13:48:19 +00:00
Atsushi Eno 21a3ea47a6 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added System.Web.UI/IAutoFieldGenerator.cs
	  and System.Web.UI.WebControls/IPersistedSelector.cs.

	* IPersistedSelector.cs : new in 3.5 SP1.

	* IAutoFieldGenerator.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112940
2008-09-13 19:01:32 +00:00
Atsushi Eno 564ade59ac 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added
	  System.Web.UI.WebControls/DataBoundControlMode.cs.

	* DataBoundControlMode.cs : new 3.5 SP1 type.


svn path=/trunk/mcs/; revision=112932
2008-09-13 12:55:21 +00:00
Marek Safar f3f05c2055 Warnings cleanup
svn path=/trunk/mcs/; revision=111904
2008-08-29 09:48:05 +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
Marek Habersack 4cbafb5cd2 2008-08-18 Marek Habersack <[email protected]>
* Unit.cs: rewrote the unit parser in a slightly slower, but more
	correct, way. Fixes bug #417502

svn path=/trunk/mcs/; revision=110734
2008-08-18 14:27:46 +00:00
Marek Habersack 342a629ca2 2008-07-28 Marek Habersack <[email protected]>
* TreeView.cs: when TreeView is displaying a site map and there is
	no node selected by the user, select the node corresponding to the
	current page, if any.

svn path=/trunk/mcs/; revision=109040
2008-07-28 16:08:02 +00:00
Marek Habersack c929cbbde8 2008-07-24 Marek Habersack <[email protected]>
* DataGrid.cs: removed the private class TableID and moved its
	code to ChildTable.cs (see below). 2.0 instantiates teh ChildTable
	with the owner parameter now. Fixes bug #400377

	* ChildTable.cs: refactoring - moved code from TableID previously
	defined in DataGrid.cs to here and made the class available under
	different names for both 1.x and 2.x profiles. Fixes bug #400377

svn path=/trunk/mcs/; revision=108638
2008-07-24 09:55:45 +00:00
Marek Habersack 1171eee515 2008-07-24 Marek Habersack <[email protected]>
* MailDefinition.cs: look for the mail body file in the correct
	path. Patch from Jackson Harper <[email protected]>,
	thanks! Fixes bug #408699

	* PasswordRecovery.cs: do not ask password recovery question if
	it's disabled. Patch from Jackson Harper <[email protected]>,
	thanks! Fixes bug #408696

svn path=/trunk/mcs/; revision=108636
2008-07-24 09:20:29 +00:00
Marek Habersack 1ba8e9ec4b 2008-07-16 Marek Habersack <[email protected]>
* XmlDataSource.cs: check if Page isn't null before stringifying
	it in GetDataKey (), fixes bug #409492

svn path=/trunk/mcs/; revision=108027
2008-07-16 13:57:38 +00:00
Roei Erez cd84894a4b When the RowDataBound event is invoked, the value of GridView1.DataKeys should contains all the keys up untill the current row, and not be empty
svn path=/trunk/mcs/; revision=107820
2008-07-13 11:55:35 +00:00
Roei Erez 5ea42ecc8a In case of multiple tree nodes bindings with the same key, select the first one and not the last one.
svn path=/trunk/mcs/; revision=107814
2008-07-13 09:30:15 +00:00
Roei Erez c28dd9039f Change behavior of HyperLinkField bound field key should be case insensitive.
svn path=/trunk/mcs/; revision=107637
2008-07-10 13:14:58 +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 a5ecccea52 2008-07-02 Marek Habersack <[email protected]>
* GridView.cs: minor optimizations (removed a foreach loop,
	replaced calls to Array.Length with a variable containing the
	length).

svn path=/trunk/mcs/; revision=107043
2008-07-02 08:06:42 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

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

	* HtmlForm.cs: hush the warnings

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

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

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

	* MachineKeyRegistryStorage.cs: hush the warnings

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

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

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

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

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

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

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

	* SqliteProfileProvider.cs: remove unused method

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

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Noam Lampert 927b3b524e * ListItemCollection.cs: Provide viewstate for dirty collection even if it is empty.
svn path=/trunk/mcs/; revision=105463
2008-06-10 16:17:28 +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 abb3087f1e 2008-05-18 Marek Habersack <[email protected]>
* HierarchicalDataBoundControl.cs: Modified GetData method to check if
	DataSource implements IHierarchicalEnumerable and if so constructs and
	returns a new instance of ReadOnlyDataSourceView. This provides functional
	compatibility with the Microsoft.NET framework. Fixes bug
	#395209. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* HierarchicalDataBoundControlTest.cs: Added 
	TestIHierarchicalEnumerableDataSource to test change made to
	GetData method to make functionally compatibile with Microsoft.NET
	framework. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* ReadOnlyDataSourceView.cs: added. Patch contributed by James
	Fitzsimons <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=104329
2008-05-28 21:07:04 +00:00
Marek Habersack 001579d033 2008-05-06 Marek Habersack <[email protected]>
* Calendar.cs: do not create dateInfo in the constructor - culture
	might be not set yet at this point. Fixes bug #323566
	Added a private property, DateInfo, which creates the dateInfo
	when requested.

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

	* TemplateControlCompiler.cs: compatibility - added the
	__stringResource static field to the generated class and a call to
	SetStringResourcePointer to the FrameworkInitialize method.

	* PageCompiler.cs: __fileDependencies should also be defined in
	the 1.x profile.
	Page properties assigned in the page directive should be set
	inside BuildControlTree in the 2.0 profile.


svn path=/trunk/mcs/; revision=102573
2008-05-05 23:38:47 +00:00
Sebastien Pouliot 5df7ecd9bd 2008-05-05 Sebastien Pouliot <[email protected]>
* BulletedList.cs: Avoid calling ToString on a string.
	* ButtonField.cs: Throw, not just create, the exceptions. 
	* HyperLinkField.cs: Throw, not just create, the exceptions. 
	* ImageField.cs: Throw, not just create, the exception. Avoid calling
	ToString on a string.
	* ListControl.cs: Avoid calling ToString on a string.
	[All issues were found using Gendarme]


svn path=/trunk/mcs/; revision=102571
2008-05-05 22:51:12 +00:00
Marek Habersack 2b863d3c26 2008-04-30 Marek Habersack <[email protected]>
* SiteMapNode.cs: the implicitResourceKey parameter to one of the
	constructors sets the value of the ResourceKey property.
	GetImplicitResourceString uses the provider's ResourceKey as the
	global resource object key and the node's ResourceKey to construct
	the resource name. Fixes bug #323994
	ResourceKey setter throws an InvalidOperationException now, when
	the node is read-only.

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

	* SiteMapDataSource.cs: when no starting node is found, return
	null instead of Provider.RootNode. Fixes bug #323994



svn path=/trunk/mcs/; revision=102197
2008-04-30 12:39:18 +00:00
Marek Habersack 579e1c75e5 Forgotten changelog
svn path=/trunk/mcs/; revision=101724
2008-04-24 18:27:44 +00:00
Marek Habersack 1fc8de2b7e 2008-04-24 Marek Habersack <[email protected]>
* SqlDataSource.cs: raise the DataSourceChangedEvent when setting
	ConnectionString, ProviderName or DataSourceMode properties only
	when the new value differs from the old one. Fixes bug #359392

svn path=/trunk/mcs/; revision=101679
2008-04-24 14:39:23 +00:00
Marek Habersack b710097c92 2008-04-16 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: ExecuteSelect should return an empty
	aray when no data has been retrieved from the specified source
	type. Fixes bug #380106

svn path=/trunk/mcs/; revision=100819
2008-04-16 02:13:32 +00:00
Marek Habersack 58a3b00cd8 2008-04-15 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * MailDefinition.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * HttpRequest.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * CachingCompiler.cs: dispose of streams the way it should
        be done.


svn path=/trunk/mcs/; revision=100690
2008-04-14 22:45:44 +00:00
Marek Habersack c03924371e 2008-04-10 Marek Habersack <[email protected]>
* Control.cs: refactoring - IdSeparator property is internally
	present also in 1.1.

2008-04-10  Marek Habersack  <[email protected]>
	
	* RadioButton.cs: adjust 'name' and 'value' attribute values to
	match MS.NET. Fixes bug #378024

svn path=/trunk/mcs/; revision=100302
2008-04-10 02:06:43 +00:00
Marek Habersack afc150413d 2008-04-10 Marek Habersack <[email protected]>
* CheckBoxList.cs: set the Selected property to the value in POST
	data only if the item in question was enabled before postback
	occurred. Fixes bug #377703

svn path=/trunk/mcs/; revision=100299
2008-04-10 00:52:30 +00:00
Marek Habersack 8c6188e7bd 2008-04-10 Marek Habersack <[email protected]>
* ListControl.cs: make sure the owned items' Enabled property is
	set to the same value what ListControl's. Fixes bug #377703

	* ListItemCollection.cs: fixed SetDirty to store the index of the
	last dirtied item properly. Fixes bug #377703
	For the 2.0 profile, set the ListItem instances Enabled property
	to the value of the owning ListControl (internal ItemsEnabled
	property was added to make it possible). Fixes bug #377703

svn path=/trunk/mcs/; revision=100296
2008-04-10 00:21:35 +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
Marek Habersack 7876e9fdc1 2008-04-03 Marek Habersack <[email protected]>
* DataListTest.cs: added test for bug #376519
	(SelectedValue_SelectedIndex

2008-04-03  Marek Habersack  <[email protected]>

	* DataList.cs: use the value of SelectedIndex, not selectedIndex,
	to return the key value in the SelectedValue property. Fixes bug
	#376519. Patch from Sergey Kuleshov <[email protected]>, thanks

2008-04-03  Marek Habersack  <[email protected]>

	* HtmlFormTest.cs: indirect test for bug #376352 is 2.0+ only.

svn path=/trunk/mcs/; revision=99704
2008-04-02 22:53:23 +00:00
Vladimir Krasnov 797ac3dc31 * AutoGeneratedField.cs, CheckBoxField.cs: fixed OnDataBindField, should hide checkbox only if DataItem is not defined
svn path=/trunk/mcs/; revision=98048
2008-03-12 15:07:08 +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
Kornél Pál 25c6680c8e Don't add Date header in ASP.NET. Fixes bug #363404.
svn path=/trunk/mcs/; revision=96613
2008-02-26 09:52:01 +00:00