Commit Graph
344 Commits
Author SHA1 Message Date
Marek Habersack 1dfc535d36 2009-03-06 Marek Habersack <[email protected]>
* JsonDeserializer.cs: unquoted key values must ignore leading
	and trailing whitespace

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

	* JavaScriptSerializerTest.cs: added a test for unquoted tests
	surrounded with spaces.

svn path=/trunk/mcs/; revision=128801
2009-03-06 22:16:37 +00:00
Marek Habersack 3c865b398f 2009-03-03 Marek Habersack <[email protected]>
* ListView.cs: SetPageProperties invoked the
	PagePropertiesChanging event with the startRowIndex and
	maximumRows parameters reversed. Fixes bugs #481250 and #481252

svn path=/trunk/mcs/; revision=128408
2009-03-03 01:28:50 +00:00
Marek Habersack ed9ff6a1db 2009-03-03 Marek Habersack <[email protected]>
* DataPagerField.cs: GetQueryModeStartRowIndex must return 'true'
	if in query mode. Fixes bug #481248

svn path=/trunk/mcs/; revision=128407
2009-03-03 01:28:31 +00:00
Marek Habersack 0d78066093 2009-01-26 Marek Habersack <[email protected]>
* ClientProxyHandler.cs: before generating the proxy check if the
	service type is decorated with the [ScriptService] custom
	attribute. Only such service types can be called from client
	JavaScript.

2009-01-26  Marek Habersack  <[email protected]>

	* ScriptManager.cs: before registering script service reference
	check if the service type is decorated with the [ScriptService]
	custom attribute. Only such service types can be called from
	client JavaScript.

svn path=/trunk/mcs/; revision=124547
2009-01-26 18:58:04 +00:00
Marek Habersack 51f5087bf2 2008-12-05 Marek Habersack <[email protected]>
* JsonSerializer.cs: StringBuilder extension methods aren't used
	anymore, changed to calls to static methods in
	StringBuilderExtensions.

	* StringBuilderExtensions.cs: cannot use extension methods here
	because this file is also used in the version 1.0 build which
	doesn't reference System.Core

svn path=/trunk/mcs/; revision=120823
2008-12-05 11:43:42 +00:00
Atsushi Eno 94864efc89 2008-11-28 Atsushi Enomoto <[email protected]>
* Makefile : add NUNIT_RESOURCE_FILES to dist.


svn path=/trunk/mcs/; revision=120201
2008-11-28 01:47:23 +00:00
Marek Habersack c8b474f72c 2008-11-28 Marek Habersack <[email protected]>
* ListView.cs: use the _correct_ operator when checking whether
	selected item index is within the data keys range.

svn path=/trunk/mcs/; revision=120194
2008-11-28 00:45:54 +00:00
Marek Habersack c217a2d9e1 2008-11-27 Marek Habersack <[email protected]>
* ListView.cs: fixes in DoUpdate and DoDelete - check must be made
	that the requested item index is _smaller_ than the number of
	keys, not _bigger_.
	Enable using the lambda expression in CreateItemsInGroups - the
	gmcs bug preventing that was fixed.

svn path=/trunk/mcs/; revision=120165
2008-11-27 16:27:17 +00:00
Marek Habersack 1c98a1360e 2008-11-20 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.ClientServices and System.Web.ClientServices.Providers
	Sorted contents for easier reading and modification.

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

	* ClientFormsAuthenticationCredentials.cs,
	ClientFormsAuthenticationMembershipProvider.cs,
	ClientRoleProvider.cs, ClientSettingsProvider.cs,
	ClientWindowsAuthenticationMembershipProvider.cs,
	IClientFormsAuthenticationCredentialsProvider.cs,
	SettingsSavedEventArgs.cs, UserValidatedEventArgs.cs: added (stubs

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

	* ClientFormsIdentity.cs, ClientRolePrincipal.cs,
	ConnectivityStatus.cs: added (stubs)

svn path=/trunk/mcs/; revision=119490
2008-11-20 18:53:57 +00:00
Marek Habersack b28c8ab425 2008-11-20 Marek Habersack <[email protected]>
* ListView.cs: implemented the EditItem property.
	Use ConvertEmptyStringToNull in ExtractItemValues.

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

	* ListViewTest.cs: added tests for several properties.

svn path=/trunk/mcs/; revision=119405
2008-11-20 02:09:18 +00:00
Marek Habersack 66c1953e77 2008-11-19 Marek Habersack <[email protected]>
* ListView.cs: added paremeter checks to AddControlToContainer.
	CreateInsertItem must instantiate the template and call raise the
	ItemCreated event.
	Added parameter checks to FindPlaceholder

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

	* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
	friend assembly.

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

	* EventRecorder.cs: class is now serializable.

	* ListViewTest.cs: use system.web Mainsoft test framework.
	ListViewPoker is now able to record events.
	Added wrappers for ListView protected methods to ListViewPoker,
	Added two simple test ITemplate classes.
	Added tests for initial values.
	Added tests for all the methods which can be tested in a simple
	way, without using a real asp.net page.
	Added test for the Edit functionality.

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

	* CountryCollection.cs, Country.cs: added

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

	* ListViewTest.aspx, ListViewSort.aspx, Web.mono.config: added

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

	* Makefile (NUNIT_RESOURCE_FILES): added

	* System.Web.Extensions_test.dll.sources: added the system.web
	Mainsoft test suite files.
	Added new test files.

svn path=/trunk/mcs/; revision=119375
2008-11-19 21:13:22 +00:00
Marek Habersack 54d3e76f8f 2008-11-18 Marek Habersack <[email protected]>
* ListViewContainer.cs: added

	* ListView.cs: 
	Align group with empty items if there are no more data items.
	Each group is contained within ListViewContainer.
	Calculate the number of groups correctly.

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

	* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/ListViewTableCell.cs
	Added ./System.Web.Query.Dynamic/DynamicClass.cs and
	./System.Web.Query.Dynamic/ParseException.cs	
	Added ./System.Web.UI.WebControls/ListViewContainer.cs

svn path=/trunk/mcs/; revision=119223
2008-11-18 21:40:18 +00:00
Marek Habersack 8479d831ee 2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: 
	Added ./System.Web.Query.Dynamic/DynamicClass.cs and
	./System.Web.Query.Dynamic/ParseException.cs

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

	* DynamicClass.cs: added

	* ParseException.cs: added

svn path=/trunk/mcs/; revision=119168
2008-11-18 16:06:47 +00:00
Marek Habersack bfa1034dd0 2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/ListViewTableCell.cs

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

	* ListView.cs: implemented grouping support. With this ListView is
	feature complete.
	Refactored grouped/non-grouped rendering common code into separate
	methods.
	FindPlaceholder now looks for the placeholder recursively.
	Implemented forgotten UpdateItem method.

	* ListViewTableCell.cs: added

svn path=/trunk/mcs/; revision=119125
2008-11-18 03:17:44 +00:00
Marek Habersack 3486292d5a 2008-11-15 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.UI.WebControls/DataPagerCommandEventArgs.cs

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

	* ListViewInsertEventArgs.cs: implemented the Values property.

	* ListView.cs: CreateChildControls uses the Items collection to
	store the created items.
	InsertNewItem triggers page validation if necessary.
	Part of InsertNewItem code refactored to DoInsert.
	Implemented handling of the Insert and Select commands.

	* TemplatePagerField.cs: implemented all the code.

	* DataPager.cs: CreatePagerFields now adds the new pager field
	control before creating data pagers in it and before binding to
	data. This avoids situation in which the field is parentless.
	FindPageableItemContainer now properly finds the container if it's
	placed directly in the Page.
	{Load,Save}ViewState don't use a Pair anymore, object array is
	used for compatibility with MS.NET

	* NumericPagerField.cs, NextPreviousPagerField.cs,
	DataPagerFieldCommandEventArgs.cs: minor refactoring

	* ListViewSelectEventArgs.cs: implemented all the code.

	* ListViewInsertedEventArgs.cs: Values allocates the dictionary on
	demand now.
	Initialize all the properties in constructor

	* DataPagerCommandEventArgs.cs: added

	* DataPagerField.cs: implemented IsTrackingViewState

	* DataPagerFieldItem.cs: implements the INonBindingContainer
	interface.

svn path=/trunk/mcs/; revision=118918
2008-11-15 04:00:05 +00:00
Marek Habersack b55db8ee75 2008-11-13 Marek Habersack <[email protected]>
* ListView.cs: implemented support for Edit, Update and Delete.
	Implemented ExtractItemValues.

	* ListViewDataItem.cs, ListViewItem.cs: implemented OnBubbleEvent.

	* ListViewDeletedEventArgs.cs, ListViewUpdateEventArgs.cs,
	ListViewEditEventArgs.cs, ListViewCancelEventArgs.cs,
	ListViewDeleteEventArgs.cs, ListViewUpdatedEventArgs.cs:
	implemented all the properties and methods.

	* HelperExtensions.cs: added

svn path=/trunk/mcs/; revision=118686
2008-11-13 01:39:03 +00:00
Marek Habersack 74c1e61ff6 Metadata updates
svn path=/trunk/mcs/; revision=118248
2008-11-08 00:20:04 +00:00
Marek Habersack 1cf76558d5 2008-11-06 Marek Habersack <[email protected]>
* ListView.cs: implemented the sorting capability.

	* ListViewSortEventArgs.cs: implemented all the methods and
	properties.

svn path=/trunk/mcs/; revision=118107
2008-11-06 13:06:27 +00:00
Marek Habersack 2deb953d44 2008-11-01 Marek Habersack <[email protected]>
* ListView.cs: do not instantiate the layout template more than
	necessary.

	* NextPreviousPagerField.cs: moved some common code to the base
	class (the GetQueryModeStartRowIndex method)

	* DataPager.cs: do not call SetPageProperties more than
	necessary.

	* NumericPagerField.cs: implemented

	* DataPagerField.cs: added a helper method,
	GetQueryModeStartRowIndex, to be used by all the concrete
	implementations to calculate the starting row index in the query
	mode.

svn path=/trunk/mcs/; revision=117600
2008-11-01 02:17:03 +00:00
Marek Habersack 2809b0c7ff 2008-10-31 Marek Habersack <[email protected]>
* ListView.cs: use StartRowIndex and MaximumRows properties when
	calculating the total row count server paging case and when
	assigning to corresponding properties of the paged data source.

svn path=/trunk/mcs/; revision=117521
2008-10-30 23:51:55 +00:00
Marek Habersack d4b9426973 2008-10-30 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/TemplatePagerField.cs

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI.WebControls/EventRecorder.cs,
	System.Web.UI.WebControls/ListViewTest.cs,
	System.Web.UI.WebControls/DataPagerFieldCollectionTest.cs

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

	* DataPagerFieldCollectionTest.cs: created. Some basic tests for
	DataPagerFieldCollection

	* EventRecorder.cs: created. A helper class for tests.

	* ListViewTest.cs: created. Some basic test for ListView.

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

	* DataPagerFieldCollection.cs: implemented most of the methods and
	properties, so that using the DataPager is possible now.

	* PagePropertiesChangingEventArgs.cs: implemented all the methods
	and properties.

	* ListView.cs: {Save,Load}ControlState now uses constants to index
	state arrays. Total row count is stored in the control state.
	CreateChildControls () now uses dummy data to initialize child
	controls if no items were found after postback.
	CreateChildControls (IEnumerable, bool) now properly calculates
	total row count, calls OnTotalRowCountAvailable after creating the
	child controls and returns the total row count instead of the
	number of created child controls. This makes pager work
	correctly.
	Implemented SetPageProperties () to support paging.

	* NextPreviousPagerField.cs: Correctly order the Next/Previous
	buttons.
	When creating buttons, cast the new control properly before
	assigning properties.

	* TemplatePagerField.cs: added (stub)

	* DataPager.cs: added missing class attributes (ParseChildren,
	PersistChildren and SupportsEventValidation).
	{Save,Load}ControlState now use constants to index the state
	arrays.
	Properly implemented FindPageableItemContainer - it now looks for
	the container up the parenthood chain, querying all the naming
	containers for the named control.
	SetUpForNewContainer now accepts an additional parameter, so that
	the SetPageProperties method is called on the container whenever
	necessary.

	* NumericPagerField.cs: implemented the CreateField method.

	* ListViewPagedDataSource.cs: implemented data source
	enumerators.

	* DataPagerFieldItem.cs: implemented all the methods and properties.

svn path=/trunk/mcs/; revision=117479
2008-10-30 14:46:35 +00:00
Marek Habersack 4168d10fa1 Cleanup
svn path=/trunk/mcs/; revision=116714
2008-10-22 00:49:55 +00:00
Marek Habersack 0b087aff65 2008-10-22 Marek Habersack <[email protected]>
* JsonDeserializer.cs: object can contain more than one unquoted
	keys.

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

	* JavaScriptSerializerTest.cs: added tests for deserialization of
	objects with more than one unquoted key names.

svn path=/trunk/mcs/; revision=116713
2008-10-22 00:46:42 +00:00
Atsushi Eno 11eb29c037 2008-10-21 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs : set ContextTypeName too when ContextType is set.


svn path=/trunk/mcs/; revision=116622
2008-10-21 15:52:16 +00:00
Jonathan Pryor 799133707c Add doc-update target support.
The doc-update target updates the Documentation/en directory for libraries
(and is otherwise ignored).

svn path=/trunk/mcs/; revision=116287
2008-10-17 18:45:17 +00:00
Atsushi Eno 3d0520e5eb 2008-10-09 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs : implement ContextType/ContextTypeName.
	* LinqDataSourceView.cs : some ExecuteSelect() implementation.
	  Cache type members which are from reflection.


svn path=/trunk/mcs/; revision=115363
2008-10-09 17:37:35 +00:00
Atsushi Eno 30dfcbfa2d 2008-10-08 Atsushi Enomoto <[email protected]>
* Makefile: add reference to S.D.Linq.

	* LinqDataSource.cs, LinqDataSourceView.cs :
	  some more implementation.


svn path=/trunk/mcs/; revision=115240
2008-10-08 16:17:05 +00:00
Marek Habersack 4d38fed939 2008-10-02 Marek Habersack <[email protected]>
* ScriptManager.cs: Cosmetical output change - the hidden fields are output after the
	update panels contents is sent in an async request. It makes the
	async response look similar to the MS.NET's one but, more
	importantly, makes debugging easier.

svn path=/trunk/mcs/; revision=114660
2008-10-02 12:03:38 +00:00
Marek Habersack 4e00a2477e 2008-10-02 Marek Habersack <[email protected]>
* ScriptManager.cs: reverting revision 114552 since the real bug
	was somewhere else. The correct fix is to make sure UpdatePanels
	which output something _or_ have been named in the POST request as
	requiring a refresh are marked as such. Only in that situation
	HasBeenRendered returns true (as it should for those panels)

svn path=/trunk/mcs/; revision=114654
2008-10-02 10:02:26 +00:00
Marek Habersack 123f42b627 2008-10-01 Marek Habersack <[email protected]>
* ScriptManager.cs: be more careful when rendering script blocks
	and checking if the control's page matches the current
	page. Control passed to script registration methods doesn't
	necessarily have to be a Page itself and if it's not we need to
	find the owning page of a script block's control.

svn path=/trunk/mcs/; revision=114552
2008-10-01 10:36:56 +00:00
Marek Habersack d84f0b5119 2008-09-30 Marek Habersack <[email protected]>
* ListView.cs: implemented all the events.
	CreateChildControls works with non-ICollection data sources now.
	CreateItemsWithoutGroups now counts items placed in the container
	and stores the container in a field, so that RemoveItems can
	properly delete the child controls.
	Implemented the RemoveItems method.
	Implemented Load/SaveControlState.
	Implemented LoadViewState.
	Implemented OnBubbleEvent.
	Implemented all the On* methods.

	* ListViewCommandEventArgs.cs: implemented the CommandSource and
	Item properties.

	* ListViewItemEventArgs.cs: implemented the Item property.

svn path=/trunk/mcs/; revision=114477
2008-09-30 13:38:22 +00:00
Marek Habersack f9d08cbc2f 2008-09-30 Marek Habersack <[email protected]>
* System.Web.Extensions.Design_1.0.dll.sources: added

	* Makefile: added

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

	* System.Web.Extensions_1.0.dll.sources: added

	* Makefile: added

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

	* Makefile (LIB_MCS_FLAGS): added -define:NET_3_5 as the 3.5 parts
	of the assembly are now built as part of the 2.0 profile.

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

	* Makefile (net_2_0_dirs): added System.Web.Extensions_1.0 and
	System.Web.Extensions.Design_1.0
	(net_3_5_dirs): removed System.Web.Extensions, the 3.5 version is
	now built in the 2.0 profile.

svn path=/trunk/mcs/; revision=114471
2008-09-30 09:19:57 +00:00
Marek Habersack 05c43d2617 CultureInfoSerializer should use lower case names for the serialized items.
svn path=/trunk/mcs/; revision=113861
2008-09-23 16:48:55 +00:00
Marek Habersack 1905082013 2008-09-23 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: do not use
	LazyDictionary as enum serializer anymore.

	* ProfileService.cs: do not use
	LazyDictionary as ProfileService serializer anymore.

	* RestHandler.cs: do not use
	LazyDictionary as the Exception or NameValueCollection serializer
	anymore.

2008-09-23  Marek Habersack  <[email protected]>

	* JavaScriptSerializer.cs: removed the LazyDictionary class, it's
	not needed anymore.


svn path=/trunk/mcs/; revision=113832
2008-09-23 14:55:49 +00:00
Juraj Skripsky 0594b0199e 2008-09-23 Juraj Skripsky <[email protected]>
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
	fix retrieval of its MethodInfo.
	Initialize serializeGenericDictionaryMethods (lazily).
	Add and use GetClosedIDictionaryBase to also handle cases where a
	non-generic class implements a closed IDictionary<,> (e.g.
	SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
	First check for IDictionary<,>, then for IDictionary.

2008-09-20  Juraj Skripsky  <[email protected]>

	* JavaScriptSerializerTest.cs: added test for bug #424704.


svn path=/trunk/mcs/; revision=113829
2008-09-23 14:33:54 +00:00
Marek Habersack def3546b31 2008-09-23 Marek Habersack <[email protected]>
* ScriptManager.cs: CultureInfoSerializer no longer derives from
	the obsolete LazyDictionary.

svn path=/trunk/mcs/; revision=113826
2008-09-23 14:20:22 +00:00
Marek Habersack b9c7ab7bc0 2008-09-20 Marek Habersack <[email protected]>
* JsonDeserializer.cs: added support for stand-alone NaN, Infinity
	and -Infinity values, as well as the same within an array.

2008-09-20  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added some tests

svn path=/trunk/mcs/; revision=113596
2008-09-19 22:41:46 +00:00
Marek Habersack 93a1d2ad6c 2008-09-19 Marek Habersack <[email protected]>
* Json.cs: added new Serialize overload which takes a TextWriter
	for its output parameter.
	Added Deserialize methods.

	* JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
	Added new Serialize overload which takes a TextWriter for its
	output parameter.
	Added WriteValue overloads for float and double - they must not be
	converted to strings as IConvertibles because their Max/MinValue
	end up converted incorrectly.

	* JavaScriptSerializer.cs: adjustments for the new JSON
	(de)serializer.

	* JsonDeserializer.cs: new JSON deserializer code, fully compliant
	with the .NET AJAX one.

2008-09-19  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: enabled some tests which were
	failing with the old (de)serializer, but work with the new one.

2008-09-19  Marek Habersack  <[email protected]>

	* System.Web.Extensions.dll.sources: removed most of the
	Newtonsoft JSON code, leaving only ReflectionUtils and
	JavaScriptUtils.


svn path=/trunk/mcs/; revision=113590
2008-09-19 21:13:55 +00:00
Marek Safar 4c2e865214 2008-09-18 Marek Safar <[email protected]>
* Makefile: Add System.Core reference.


svn path=/trunk/mcs/; revision=113433
2008-09-18 15:51:03 +00:00
Atsushi Eno 45bbe0a186 2008-09-18 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs, LinqDataSourceView.cs
	  LinqDataSourceContextEventArgs.cs
	  LinqDataSourceDeleteEventArgs.cs
	  LinqDataSourceDisposeEventArgs.cs
	  LinqDataSourceInsertEventArgs.cs
	  LinqDataSourceSelectEventArgs.cs
	  LinqDataSourceStatusEventArgs.cs
	  LinqDataSourceUpdateEventArgs.cs : easy implementation parts.


svn path=/trunk/mcs/; revision=113405
2008-09-18 12:32:40 +00:00
Atsushi Eno 5bd356d8b0 Added LinqDataSource stuff (stubs).
svn path=/trunk/mcs/; revision=113393
2008-09-18 07:22:17 +00:00
Marek Habersack 5defc3fa29 2008-09-17 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.Script.Serialization/Json.cs,
	System.Web.Script.Serialization/JsonSerializer.cs and
	System.Web.Script.Serialization/StringBuilderExtensions.cs

	* System.Web.Script.Serialization/Json.cs: helper class to invoke
	de/serializer.

	* System.Web.Script.Serialization/JsonSerializer.cs: new
	implementation of Json serializer that is free of issues found in
	the old one (and faster + simpler).

	* System.Web.Script.Serialization/JavaScriptSerializer.cs: staging
	transition to the new Json (de)serializer. For now deserialization
	is done using the old JSON code, serialization uses the new
	serializer.

	* System.Web.Script.Serialization/StringBuilderExtensions.cs: a
	set of simple StringBuilder extension methods which check the size
	of the builder against some value and throw an exception if the
	value is exceeded.

svn path=/trunk/mcs/; revision=113254
2008-09-17 06:42:10 +00:00
Atsushi Eno 7bdf4220e4 2008-09-13 Atsushi Enomoto <[email protected]>
* DynamicDataSourceOperation.cs, DynamicValidatorEventArgs.cs,
	  IDynamicDataSource.cs, IDynamicValidatorException.cs :
	  oops, everything went into wrong namespace.


svn path=/trunk/mcs/; revision=112935
2008-09-13 13:26:41 +00:00
Atsushi Eno 79ba9748c8 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.Extensions.dll.sources :
	  added sys.web.DynamicData types.

	* DynamicDataSourceOperation.cs, DynamicValidatorEventArgs.cs,
	  IDynamicDataSource.cs, IDynamicValidatorException.cs :
	  new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112934
2008-09-13 13:21:54 +00:00
Marek Habersack 8301c20a94 2008-09-01 Marek Habersack <[email protected]>
* UpdatePanel.cs: if the writer passed to RenderChildren is not
	derived from ScriptManager.AlternativeHtmlTextWriter, check
	whether its InnerWriter derives from that type and, if yes, use
	it from that point onwards.

svn path=/trunk/mcs/; revision=112000
2008-09-01 00:17:51 +00:00
Marek Habersack 0befa2bb02 2008-08-30 Marek Habersack <[email protected]>
* System.Web.Script.Serialization/JavaScriptSerializer.cs: if the
	target type is an IDictionary with value type of System.Object,
	make sure to NOT convert any values.
	Any values descendant from JavaScriptSerializer.LazyDictionary are
	converted to Dictionary <string, object>

svn path=/trunk/mcs/; revision=111956
2008-08-29 22:37:59 +00:00
Marek Habersack 6c2057c3ca 2008-08-28 Marek Habersack <[email protected]>
* System.Web.Script.Services/LogicalTypeInfo.cs: Invoke does not
	convert context to System.Object.
	If context is descendant from JavaScriptSerializer.LazyDictionary
	it is converted to a regular Dictionary <string, object> before
	passing to the service method.

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

	* JsonSerializer.cs: each value stored in an enumerable is treated
	as a top-level object.

svn path=/trunk/mcs/; revision=111801
2008-08-28 13:13:35 +00:00
Marek Habersack 0e1e0d5903 2008-08-28 Marek Habersack <[email protected]>
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
	correctly handle members which have an interface as their return
	type - several known interfaces are converted to implementing
	types.

svn path=/trunk/mcs/; revision=111772
2008-08-28 01:35:55 +00:00
Marek Habersack 128130fb6c 2008-08-22 Marek Habersack <[email protected]>
* JsonSerializer.cs: do not perform deep object serialization - it
	results in all kinds of problems (including too big size of the
	resulting string, recursion errors when two or more objects in the
	hierarchy hold a reference to some object) and is not what .NET
	code does. 
	Property name is written only after it is determined if we're
	serializing the property or not.
	Entire object is serialized only if it's the object requested for
	serialization by calling code.

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

	* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
	marked several of the JavaScriptSerializer tests as not
	working. Experiments show that the tests are invalid as they relay
	on behavior which is different to .NET's.

	* System.Web.Script.Serialization/JavaScriptSerializer.cs:
	GetConverter now checks whether the requested type is descendant
	from the type supported by teh converter.

svn path=/trunk/mcs/; revision=111421
2008-08-22 20:51:45 +00:00
Jb Evain a78a3cd939 remove unecessary InternalsVisibleTo attributes
svn path=/trunk/mcs/; revision=111203
2008-08-20 22:14:06 +00:00