94 Commits
Author SHA1 Message Date
Alexander Köplinger 2a978a42f1 [bcl] Remove NET_3_5 defines from class libs 2015-01-21 17:59:27 +01:00
Etienne CHAMPETIER 227b0d1b55 [cleanup] System.Web*: remove TARGET_J2EE
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-12-01 23:57:18 +01:00
QuickJack d0b2d82e13 Fixes some warnings in System.Web.Extensions.dll 2011-12-29 15:59:41 +01:00
Marek Habersack 1e4f071948 [asp.net] Fix for bug #650847. Output both tagged and untagged UpdatePanel names in AJAX responses.
Also, update panels which rendered empty string are included in the output.
2011-05-16 16:13:20 +02:00
Marek Habersack 503f243144 [asp.net] Do not retrieve script's URL in RegisterScriptReference if script.Path is set. 2011-05-04 23:27:29 +02:00
Marek Habersack 37a3e41b87 [asp.net] Implemented composite scripts support in System.Web.Extensions 2011-04-21 02:24:40 +02:00
Marek Habersack c71ce9b49e [asp.net] Fix for bug #685116. AJAX post-back which redirects the browser does not need a Page or ScriptManager instance 2011-04-15 00:55:14 +02:00
Marek Safar c8c8fc7769 Fixed missing protected internal modifier 2011-01-08 19:26:53 +00:00
Marek Habersack 515968a6f2 [asp.net] Part of fix for bug #649546. Better handling of nested UpdatePanels
Nested update panels don't ever output a script block in RenderChildren, they write to the passed
HtmlTextWriter instead.
2010-11-04 14:57:45 +01:00
Marek Habersack a9cb57cc13 [asp.net] Part of fix for bug #649546. A partial rewrite of the web/script resource handler.
* 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
2010-11-03 03:21:02 +01:00
Marek Habersack fe4db38920 [asp.net] Scripts may be requested also from pages without associated ScriptManager
Make sure ScriptManager exists in the current page before attempting to use it.
2010-08-13 02:15:32 +02:00
Marek Habersack 7bf126dbdf 2010-02-02 Marek Habersack <[email protected]>
* 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
2010-02-01 23:47:21 +00:00
Marek Habersack e001af32dc 2009-09-28 Marek Habersack <[email protected]>
* ScriptManager.cs: don't render invisible panel IDs during async
	request. Fixes bug #542533

svn path=/trunk/mcs/; revision=142766
2009-09-28 16:43:43 +00:00
Marek Habersack 9cb8f88de9 2009-05-26 Marek Habersack <[email protected]>
* 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
2009-05-26 12:16:56 +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 bf6f68cf2d 2009-03-19 Marek Habersack <[email protected]>
* 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
2009-03-19 13:44:14 +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 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 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 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 890c4449dc 2008-08-13 Marek Habersack <[email protected]>
* 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
2008-08-13 20:39:19 +00:00
Igor Zelmanovich 0fe4844bc2 merge r108940-108941
svn path=/trunk/mcs/; revision=108943
2008-07-27 15:14:59 +00:00
Marek Habersack 7d9dbaa818 2008-06-05 Marek Habersack <[email protected]>
* 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
2008-06-05 09:08:56 +00:00
Igor Zelmanovich 2665e54043 merge r98531
svn path=/trunk/mcs/; revision=98532
2008-03-18 12:53:10 +00:00
Igor Zelmanovich 72b8feb292 merge r96240:96241
svn path=/trunk/mcs/; revision=96242
2008-02-20 12:14:11 +00:00
Igor Zelmanovich 246d9048c4 fixed resolving relative path for services
svn path=/trunk/mcs/; revision=93017
2008-01-16 09:09:27 +00:00
Igor Zelmanovich d3a5cc3d85 remove TARGET_J2EE ifdef
svn path=/trunk/mcs/; revision=92927
2008-01-15 09:00:40 +00:00
Igor Zelmanovich 04661ec92e refactoring:
renamed methods if internal IScriptManager.

svn path=/trunk/mcs/; revision=92583
2008-01-10 13:35:21 +00:00
Igor Zelmanovich 5a4725fc6d ScriptManager implements IScriptManager interface
and register itself with page with appropriate key

svn path=/trunk/mcs/; revision=92390
2008-01-07 14:32:14 +00:00
Igor Zelmanovich 64cfa3777f fixed RegisterScriptDescriptors and RegisterScriptReference
svn path=/trunk/mcs/; revision=92352
2008-01-06 17:11:40 +00:00
Igor Zelmanovich ad01888cb3 fixed RegisterStartupScript
svn path=/trunk/mcs/; revision=92196
2008-01-03 17:43:09 +00:00
Igor Zelmanovich 85c9f0e48c implement
GetRegisteredClientScriptBlocks, 
GetRegisteredOnSubmitStatements,
GetRegisteredStartupScripts

svn path=/trunk/mcs/; revision=92165
2008-01-03 12:25:11 +00:00
Igor Zelmanovich fdcf5a5a4a implement GetRegisteredDisposeScripts()
svn path=/trunk/mcs/; revision=92162
2008-01-03 09:51:38 +00:00
Igor Zelmanovich d46549658c implement GetRegisteredHiddenFields
svn path=/trunk/mcs/; revision=92160
2008-01-03 09:22:59 +00:00
Igor Zelmanovich e551f6196e encode ExpandoAttribute if need.
svn path=/trunk/mcs/; revision=92159
2008-01-03 08:58:29 +00:00
Igor Zelmanovich 5fe41d6a57 initialize wrapped list if need
svn path=/trunk/mcs/; revision=92158
2008-01-03 08:33:07 +00:00
Igor Zelmanovich 59934c943c implement GetRegisteredExpandoAttributes()
svn path=/trunk/mcs/; revision=92114
2008-01-02 16:46:51 +00:00
Igor Zelmanovich 00795ef626 implement GetRegisteredArrayDeclarations()
svn path=/trunk/mcs/; revision=92110
2008-01-02 15:33:23 +00:00
Igor Zelmanovich 5224841636 added stubs for missing public API,
source formatting

svn path=/trunk/mcs/; revision=92102
2008-01-02 14:19:16 +00:00
Igor Zelmanovich fbf30804f6 fixed/redesigned ScriptManagerProxy
svn path=/trunk/mcs/; revision=91889
2007-12-26 09:56:18 +00:00
Noam Lampert 3c23c155de Revert commit 91482. Breaks compiler csc.exe of FW 2.0 without SP1
svn path=/trunk/mcs/; revision=91483
2007-12-17 19:07:30 +00:00
Noam Lampert 51bd97960e Fix compilation errors discovered with csc.exe of FW 2.0 SP1
svn path=/trunk/mcs/; revision=91482
2007-12-17 18:46:54 +00:00
Igor Zelmanovich 579b73c4e2 removed #if TARGET_J2EE
svn path=/trunk/mcs/; revision=87746
2007-10-18 12:01:05 +00:00
Igor Zelmanovich 34e097b93a for #TARGET_J2EE
not all servers such portal supports partial rendering 

svn path=/trunk/mcs/; revision=87741
2007-10-18 09:47:07 +00:00
Igor Zelmanovich 35f888b326 return formAction in AJAX response.
svn path=/trunk/mcs/; revision=87701
2007-10-17 16:57:58 +00:00
Igor Zelmanovich 2f289ef6d5 added support for multi form environment
svn path=/trunk/mcs/; revision=85196
2007-09-02 14:49:53 +00:00
Igor Zelmanovich 3bb49f49bd consider HtmlEncoding when parsing hidden fields
svn path=/trunk/mcs/; revision=84686
2007-08-23 10:54:09 +00:00
Konstantin Triger 9fbfd4fb7c implement Profile service
svn path=/trunk/mcs/; revision=83270
2007-08-02 09:10:50 +00:00