[Mono-bugs] [Bug 424704] [Regression] Commit 111421 broke the CalendarExtender from AjaxControlToolkit

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 23 09:53:11 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=424704

User juraj at hotfeet.ch added comment
https://bugzilla.novell.com/show_bug.cgi?id=424704#c2





--- Comment #2 from Juraj Skripsky <juraj at hotfeet.ch>  2008-09-23 07:53:11 MDT ---
Created an attachment (id=241147)
 --> (https://bugzilla.novell.com/attachment.cgi?id=241147)
minimal testcase

This test case is much simpler. It doesn't use AjaxControlToolkit but requires
manual inspection of the resulting html code.

Extract, start xsp2, request index.aspx. The html should include this code:

<script type="text/javascript">
//<![CDATA[
var __cultureInfo =
'{"name":"en-US","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".",
....... }}';//]]>
</script>

but it actually contains this:

<script type="text/javascript">
//<![CDATA[
var __cultureInfo =
'[{"Key":"name","Value":"en-US"},{"Key":"numberFormat","Value":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".",
........ }}]';//]]>
</script>


The problem is that when EnableScriptGlobalization is set, ScriptManager has to
serialize a ScriptManager.CultureInfoSerializer object which derives from
JavaScriptSerializer.LazyDictionary which in turn implements
IDictionary<string, object> (but not IDictionary!). CultureInfoSerializer is
_not_ generic hence the code for IDictionary<,> in JsonSerializer is not used.
It is treated as an IEnumerable.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list