* System.Web/System.Web.Handlers/AssemblyResourceLoader.cs: AssemblyResourceLoader/ScriptResourceHandler must
always generate the same URL for every assembly+resource pair, or otherwise the browser would re-fetch
the resource in situations where it is not desired (e.g. during an async request to the server to update
a panel).
The generated URLs are not encrypted using real encryption, just hashed.
In addition, the handler code got modernized a bit.
* System.Web.Extensions/System.Web.UI/ScriptManager.cs: scriptStartupBlock is a 3.5+ thing
* System.Web.Extensions_1.0/Makefile: use the 1.0 Microsoft AJAX library for this compat assembly
* System.Web/System.Web.Util/MachineKeySectionUtils.cs: made GetValidationKey public
* ScriptManager.cs: adjusted script rendering to match .NET
formatting.
* ScriptComponentDescriptor.cs: GetScript adds ID value (if
present) to the set of properties.
GetScript rewritten to use StringBuilder.
* ScriptBehaviorDescriptor.cs: GetScript adds Name, if present and
set by the user, to the descriptor's set of properties. The name
must be rendered to the client.
2010-02-02 Marek Habersack <[email protected]>
* ScriptBehaviorDescriptorTest.cs,
ScriptComponentDescriptorTest.cs: added tests for rendering of the
Name and ID properties.
svn path=/trunk/mcs/; revision=150684
* System.Web.Extensions.dll.sources: added
System.Web.UI/ScriptReferenceBase.cs
2009-05-26 Marek Habersack <[email protected]>
* ScriptReferenceBase.cs: implemented (3.5 SP1)
* ScriptReference.cs: now inherits from the ScriptReferenceBase
class. Implemented all the required methods, removed some
properties which now live in the base class.
* ScriptManager.cs: code refactoring - moved parts of script
registration code to ScriptReference
2009-05-26 Marek Habersack <[email protected]>
* ListControlDesigner.cs: updated to match MSDN specs, added 2.0
methods. Used in the latest AjaxControlToolkit.
2009-05-26 Marek Habersack <[email protected]>
* System.Design.dll.sources: added
System.Web.UI.Design.WebControls/ListControlDesigner.cs
svn path=/trunk/mcs/; revision=134754
* UpdatePanel.cs: implemented SingleChildControlCollection to be
used in CreateControlCollection ().
RequiresUpdate not only checks the update mode and explicit update
requests, but also looks if any triggers fired.
Initialize () initializes triggers only if partial rendering is
supported by the ScriptManager.
IsInPartialRendering property no longer returns the value of
ScriptManager.IsInPartialRendering. Instead, it relies on the
value of instance field which can be set using new internal
SetInPartialRendering () method (called from
ScriptManager.RenderPageCallback ())
Simplified the logic in RenderChildren ().
* ScriptManager.cs: no need to register panels for refresh in
OnPreRenderComplete, this is now done in RenderPageCallback.
Modified HasBeenRendered () so that it doesn't query whether the
panel has been explicitly updated by the user, but checks whether
panel is in the list of panels to refresh.
RaisePostDataChangedEvent () doesn't update the panel whose id is
named in the POST request for refresh. This is handled in
RenderPageCallback.
Reverted the changes to WriteCallbackPanel and RenderFormCallback
committed in r129774.
RenderPageCallback now correctly detects panels to be refreshed
(and thus included in the async response).
* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
HasTriggered ().
svn path=/trunk/mcs/; revision=131511
* ScriptManager.cs: WriteCallbackPanel is called from
UpdatePanel.RenderChildren and should not output anything for
panels registered as the ones to refresh. If such a panel calls
this method, its output is stored in a dictionary to be used later
in RenderFormCallback.
RenderFormCallback first renders all the form controls. In that
process UpdatePanel instances, if any, may call
WriteCallbackPanel. After that, if there are panels registered for
refresh, another loop over the list is made this time checking
whether any panels left their output in WriteCallbackPanel. If a
panel hasn't done it it is rendered. And last, another check is
done to see if the loop described above caused any panels to leave
output in WriteCallbackPanel. If yes, the output is written to the
text writer.
svn path=/trunk/mcs/; revision=129774
* 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
* 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
* 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
* 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
* ScriptManager.cs: always request the webform.js script to be
present. It may happen that a control during a dynamic update will
need to call one of the WebForm_* functions and the call will fail
as the script will be absent.
If debugging is enabled, send the full exception backtrace in
WriteCallbackException - helps debugging AJAX errors
svn path=/trunk/mcs/; revision=110403
* ScriptManager.cs: do not throw NREX when there are no profile or
authentication service sections in the config files.
svn path=/trunk/mcs/; revision=104963