11 Commits
Author SHA1 Message Date
Marek Habersack 606cbfde03 [asp.net] Fix for bug #659078. AsyncPostBackTrigger must react to events from sub-controls.
Sub-control IDs can be separated using both '$' and '_'.
2011-01-11 01:56:17 +01:00
Marek Habersack 2ef160b5cf [asp.net] Part of fix for bug #653013. AsyncPostBackTrigger must react to events generated by the trigger control's children. 2010-11-17 14:20:23 +01:00
Marek Habersack 9d89339d8a [asp.net] Fix for bug #618481. AsyncPostBackTrigger.OnEvent must call Owner.Update only for conditionally updated panels
If the owner UpdatePanel has its UpdateMode set to Always, do not call Update () as it will cause an InvalidOperationException
to be thrown.
2010-08-09 14:30:29 +02:00
Marek Habersack ee93d927ff [asp.net] AsyncPostBackTrigger.HasTriggered must use FindTargetControl ()
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
2010-08-09 14:12:54 +02:00
Marek Habersack d43011f895 [asp.net,bugfix] Fix for bug #620456. AsyncPostBackTrigger must look for target control in naming containers
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
2010-08-09 14:12:53 +02:00
Marek Habersack 0d6fd8d740 2009-04-23 Marek Habersack <[email protected]>
* AsyncPostBackTrigger.cs: HasTriggered () must look up the
	UniqueID of the control specified in the ControlID property or
	otherwise it may miss certain triggers.

svn path=/trunk/mcs/; revision=132482
2009-04-23 16:47:52 +00:00
Marek Habersack b0ef88b86f 2009-04-11 Marek Habersack <[email protected]>
* 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
2009-04-11 13:36:46 +00:00
Marek Habersack 89e5209fbb 2008-05-15 Marek Habersack <[email protected]>
* AsyncPostBackTrigger.cs: don't thrown an exception if EventName
	is null or empty and there is no DefaultEventAttribute attached to
	the control.

svn path=/trunk/mcs/; revision=103295
2008-05-15 16:10:16 +00:00
Igor Zelmanovich ee6fafa097 refactoring: make it works for TARGET_J2EE
svn path=/trunk/mcs/; revision=81327
2007-07-04 11:38:14 +00:00
Igor Zelmanovich 874ed48ddc Initial AsyncPostBackTrigger implementation
svn path=/trunk/mcs/; revision=80307
2007-06-20 11:49:30 +00:00
Igor Zelmanovich 70ad131df5 Initial drop for System.Web.Extensions assembly
svn path=/trunk/mcs/; revision=78054
2007-05-28 13:03:30 +00:00