2009-04-11 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web.Extensions / System.Web.UI / ChangeLog
1 2009-04-11  Marek Habersack  <mhabersack@novell.com>
2
3         * UpdatePanel.cs: implemented SingleChildControlCollection to be
4         used in CreateControlCollection ().
5         RequiresUpdate not only checks the update mode and explicit update
6         requests, but also looks if any triggers fired.
7         Initialize () initializes triggers only if partial rendering is
8         supported by the ScriptManager.
9         IsInPartialRendering property no longer returns the value of
10         ScriptManager.IsInPartialRendering. Instead, it relies on the
11         value of instance field which can be set using new internal
12         SetInPartialRendering () method (called from
13         ScriptManager.RenderPageCallback ())
14         Simplified the logic in RenderChildren ().
15
16         * ScriptManager.cs: no need to register panels for refresh in
17         OnPreRenderComplete, this is now done in RenderPageCallback.
18         Modified HasBeenRendered () so that it doesn't query whether the
19         panel has been explicitly updated by the user, but checks whether
20         panel is in the list of panels to refresh.
21         RaisePostDataChangedEvent () doesn't update the panel whose id is
22         named in the POST request for refresh. This is handled in
23         RenderPageCallback.
24         Reverted the changes to WriteCallbackPanel and RenderFormCallback
25         committed in r129774.
26         RenderPageCallback now correctly detects panels to be refreshed
27         (and thus included in the async response).
28
29         * AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
30         HasTriggered ().
31
32 2009-04-08  Marek Habersack  <mhabersack@novell.com>
33
34         * ScriptComponentDescriptor.cs: properties/events/references must
35         be serialized in alphabetical order. This matches what .NET
36         does. Some 3rd party controls depend upon this fact.
37
38 2009-04-07  Marek Habersack  <mhabersack@novell.com>
39
40         * ScriptComponentDescriptor.cs: new values replace old in
41         AddEntry.
42
43 2009-03-19  Marek Habersack  <mhabersack@novell.com>
44
45         * ScriptManager.cs: WriteCallbackPanel is called from
46         UpdatePanel.RenderChildren and should not output anything for
47         panels registered as the ones to refresh. If such a panel calls
48         this method, its output is stored in a dictionary to be used later
49         in RenderFormCallback.
50         RenderFormCallback first renders all the form controls. In that
51         process UpdatePanel instances, if any, may call
52         WriteCallbackPanel. After that, if there are panels registered for
53         refresh, another loop over the list is made this time checking
54         whether any panels left their output in WriteCallbackPanel. If a
55         panel hasn't done it it is rendered. And last, another check is
56         done to see if the loop described above caused any panels to leave
57         output in WriteCallbackPanel. If yes, the output is written to the
58         text writer.
59
60 2009-01-26  Marek Habersack  <mhabersack@novell.com>
61
62         * ScriptManager.cs: before registering script service reference
63         check if the service type is decorated with the [ScriptService]
64         custom attribute. Only such service types can be called from
65         client JavaScript.
66
67 2008-10-02  Marek Habersack  <mhabersack@novell.com>
68
69         * ScriptManager.cs: reverting revision 114552 since the real bug
70         was somewhere else. The correct fix is to make sure UpdatePanels
71         which output something _or_ have been named in the POST request as
72         requiring a refresh are marked as such. Only in that situation
73         HasBeenRendered returns true (as it should for those panels)
74         Cosmetical output change - the hidden fields are output after the
75         update panels contents is sent in an async request. It makes the
76         async response look similar to the MS.NET's one but, more
77         importantly, makes debugging easier.
78
79 2008-09-23  Marek Habersack  <mhabersack@novell.com>
80
81         * ScriptManager.cs: CultureInfoSerializer no longer derives from
82         the obsolete LazyDictionary.
83
84 2008-09-01  Marek Habersack  <mhabersack@novell.com>
85
86         * UpdatePanel.cs: if the writer passed to RenderChildren is not
87         derived from ScriptManager.AlternativeHtmlTextWriter, check
88         whether its InnerWriter derives from that type and, if yes, use
89         it from that point onwards.
90
91 2008-08-13  Marek Habersack  <mhabersack@novell.com>
92
93         * ScriptManager.cs: always request the webform.js script to be
94         present. It may happen that a control during a dynamic update will
95         need to call one of the WebForm_* functions and the call will fail
96         as the script will be absent.
97         If debugging is enabled, send the full exception backtrace in
98         WriteCallbackException - helps debugging AJAX errors.
99
100 2008-08-08  Marek Habersack  <mhabersack@novell.com>
101
102         * UpdatePanel.cs: do not check whether a panel whose children are
103         to be rendered has been marked for update in the async postback
104         mode. It prevents complex scenarios where there is one superior
105         update panel which owns an inferior one, and only the superior one
106         has Update called on it.
107
108 2008-06-05  Marek Habersack  <mhabersack@novell.com>
109
110         * ScriptManager.cs: do not throw NREX when there are no profile or
111         authentication service sections in the config files.
112
113 2008-05-15  Marek Habersack  <mhabersack@novell.com>
114
115         * AsyncPostBackTrigger.cs: don't thrown an exception if EventName
116         is null or empty and there is no DefaultEventAttribute attached to
117         the control.
118
119 2008-05-14  Marek Habersack  <mhabersack@novell.com>
120
121         * ScriptComponentDescriptor.cs: do not add the same
122         entry twice to a dictionary.
123