Commit Graph
769 Commits
Author SHA1 Message Date
Igor Zelmanovich 2b7aca3342 2007-08-06 Igor Zelmanovich <[email protected]>
* DataSourceView.cs: fixed: 
	view raises onchange event when datasource is chenged.			

2007-08-06 Igor Zelmanovich <[email protected]>

	* DataSourceViewTest.cs:
	Added new test.

2007-08-06 Igor Zelmanovich <[email protected]>

	* AccessDataSource.cs: does not subscribed on view changed event.
	* ObjectDataSource.cs: fixed state management.
	* SqlDataSource.cs:	fixed state management.	 


svn path=/trunk/mcs/; revision=83541
2007-08-06 15:46:33 +00:00
Igor Zelmanovich 82bb597bbe 2007-08-06 Igor Zelmanovich <[email protected]>
* Control.cs: fixed: control ID management.			

2007-08-06 Igor Zelmanovich <[email protected]>

	* ControlTest.cs:
	Added new tests.

2007-08-06 Igor Zelmanovich <[email protected]>

	* DataGridTest.cs:
	* DetailsViewTest.cs:
	fixed tests.


svn path=/trunk/mcs/; revision=83536
2007-08-06 14:45:58 +00:00
Igor Zelmanovich 689135bd7e 2007-08-06 Igor Zelmanovich <[email protected]>
* Control.cs: refactoring: code formatting only.		


svn path=/trunk/mcs/; revision=83521
2007-08-06 07:16:55 +00:00
Vladimir Krasnov c91b62cf20 * HtmlTextWriter.cs: performance refactoring, optimized AddAttribute overloads, used StringComparer for tag, styles and attrs hashtables
fixed AddAttribute, id attr should not be encoded by default

svn path=/trunk/mcs/; revision=83499
2007-08-05 12:39:00 +00:00
Vladimir Krasnov 79e28d9991 * Control.cs: fixed AppRelativeTemplateSourceDirectory that should depend on AppRelativeVirtualPath
* Control.jvm.cs: fixed TemplateSourceDirectory that should depend on AppRelativeTemplateSourceDirectory

svn path=/trunk/mcs/; revision=83085
2007-07-31 14:32:28 +00:00
Vladimir Krasnov 772c3db053 * Page.jvm.cs: fixed RenderResponse property, should not fail in no Contex available
svn path=/trunk/mcs/; revision=83002
2007-07-30 15:42:31 +00:00
Igor Zelmanovich 37303a210b 2007-07-29 Igor Zelmanovich <[email protected]>
* Page.cs: added TARGET_J2EE variable at client side.

svn path=/trunk/mcs/; revision=82930
2007-07-29 12:39:46 +00:00
Igor Zelmanovich 7bba17dd3c 2007-07-24 Igor Zelmanovich <[email protected]>
* webform.js:
	* WebUIValidation_2.0.js:
	refactoring: provide possibility to define relevant functions in different 
	scopes. (global=window or form element). thus providing a solution for 
	multi form environment.		

2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs:
	* Page.cs:
	* Page.jvm.cs:
	added new internal property IsMultiForm which returns false under
	!TARGET_J2EE (Portal). All client scripts are rendered 
	according this property.	
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* BaseValidator.cs: All client scripts are rendered 
	according IsMultiForm property.


svn path=/trunk/mcs/; revision=82648
2007-07-25 08:59:32 +00:00
Igor Zelmanovich 22862a356e 2007-07-24 Igor Zelmanovich <[email protected]>
* TreeView.cs: refactoring:
	* TreeView.js:
	used ClientScriptManager.GetCallbackEventReference API instead calling 
	WebForm_DoCallback explicit.
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs: fixed: GetCallbackEventReference method.
		

svn path=/trunk/mcs/; revision=82560
2007-07-24 12:19:00 +00:00
Igor Zelmanovich 982b7f89f1 2007-07-28 Igor Zelmanovich <[email protected]>
* Page.cs: refactoring:	__doPostBack client script
	It is a part of adapting System.Web to work whith 
	System.Web.Extensions (AJAX).

svn path=/trunk/mcs/; revision=82509
2007-07-23 14:39:22 +00:00
Konstantin Triger ca9046161b calculate AppRelativeTemplateSourceDirectory from HttpContext when control is not in control collection
svn path=/trunk/mcs/; revision=82469
2007-07-23 09:01:55 +00:00
Konstantin Triger d753e8fc6d base AppRelativeTemplateSourceDirectory property on TemplateControl; implement special behavior of Control.TemplateControl for TemplateControl instances
svn path=/trunk/mcs/; revision=82443
2007-07-22 15:41:51 +00:00
Igor Zelmanovich bb8edfd8e7 typo fix
svn path=/trunk/mcs/; revision=82432
2007-07-22 10:35:56 +00:00
Marek Habersack 6a629d62d7 2007-07-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: on the 2.0 profile BindingContainerType
	returns the associated control's base type when parent builder is
	absent instead of typeof (Control). It returns typeof (Control) if
	the parent builder type is determined to be a
	NamingContainer. This makes the generated code match the MS.NET
	output. Fixes bug #82119.

2007-07-18  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
	does not look up the Item/Items properties to determine the
	container type, instead it just returns the type reported by the
	builder passed to this method. This change makes the generated
	code match MS.NET. Fixes bug #82119.


svn path=/trunk/mcs/; revision=82200
2007-07-18 12:48:55 +00:00
Igor Zelmanovich 3b8200c20c 2007-07-18 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	scripts, registered using RegisterClientScriptInclude, 
	RegisterClientScriptResource and RegisterClientScriptBlock appear on Page
	in order matches the order in which the scripts were registered.

svn path=/trunk/mcs/; revision=82189
2007-07-18 11:03:17 +00:00
Marek Habersack 93dd9afb5c 2007-07-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: the <meta> tag should be supported as well.

	* HtmlTitle.cs: if the tag has any children, or the render method
	delegate has been defined, render the children. Output the
	contents of Text otherwise. Fixes bug #82102

svn path=/trunk/mcs/; revision=82025
2007-07-16 11:31:54 +00:00
Igor Zelmanovich 99730e2187 2007-07-16 Igor Zelmanovich <[email protected]>
* Control.cs: fixed EnsureID.
	ID is not assigned, if already was set.


svn path=/trunk/mcs/; revision=82022
2007-07-16 10:23:09 +00:00
Vladimir Krasnov 651a65a740 * ClientScriptManager.cs: refactored event validation data structure
* Page.cs: fixed InternalProcessRequest, event validation list should be cleared before render

svn path=/trunk/mcs/; revision=81858
2007-07-12 09:26:28 +00:00
Vladimir Krasnov aac94353f2 * ObjectStateFormatter.cs: optimized loops in array formatters
svn path=/trunk/mcs/; revision=81699
2007-07-10 12:15:37 +00:00
Marek Habersack 99cb6193fa 2007-07-03 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: improve directive
	pre-parsing. Directives can span multiple lines, they don't have
	to start at the beginning of the line and any content can follow
	them after the directive end. Also, do not trim the input since
	that might affect program content. Fixes bug #81993.

svn path=/trunk/mcs/; revision=81234
2007-07-03 11:19:40 +00:00
Marek Habersack 8f43bfc166 2007-07-02 Marek Habersack <[email protected]>
* Control.cs: make sure TemplateSourceDirectory returns meaningful
	results in the 1.1 profile. Fixes bug #81950.

svn path=/trunk/mcs/; revision=81163
2007-07-02 09:14:17 +00:00
Vladimir Krasnov 37e14dc36c * ObjectStateFormatter.cs: WriterContext.RegisterCache, refactored out parameter
svn path=/trunk/mcs/; revision=80617
2007-06-24 09:24:25 +00:00
Konstantin Triger 1f84b431b4 TARGET_JVM: correctly handle Portal's 'GetBack'
svn path=/trunk/mcs/; revision=80402
2007-06-21 06:19:08 +00:00
Marek Habersack 0b80ac0b50 2007-06-20 Marek Habersack <[email protected]>
* OutputCacheModule.cs: use Context.InternalCache.

	* Cache.cs: 2.0 profile uses generic containers to keep the cache
	entries.
	Gotten rid of the InsertPrivate and InsertInternal methods. The
	latter was moved to one of the Insert overloads.
	Private entries are no longer handled specifically, because the
	internal cache is now kept in a separate object.

2007-06-20  Marek Habersack  <[email protected]>

	* AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
	private entries.
	* CachingCompiler.cs: as above
	* AspGenerator.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* DataSourceCacheManager.cs: use HttpContext.Current.InternalCache
	to keep private entries.
	* XmlDataSource.cs: as above

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	the internal entries.

2007-06-20  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: use HttpRuntime.InternalCache to
	keep the private entries.

2007-06-20  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: added new internal property, InternalCache, to
	keep all the internal cache entries instead of mixing them with
	the public cache ones.
	Do not invoke Cache.InvokePrivateCallbacks - this method no longer
	exists.

	* HttpResponse.cs: private entries are now kept in
	Context.InternalCache.

	* HttpContext.cs: added new internal property, InternalCache,
	which returns the HttpRuntime.InternalCache value.

Fixes bug #81690


svn path=/trunk/mcs/; revision=80321
2007-06-20 15:42:36 +00:00
Igor Zelmanovich 5f399ab923 2007-06-18 Igor Zelmanovich <[email protected]>
* Control.cs: revised the changes from r79982. 	


svn path=/trunk/mcs/; revision=80003
2007-06-18 13:21:15 +00:00
Igor Zelmanovich 2394f114b5 2007-06-18 Igor Zelmanovich <[email protected]>
* Control.cs: optimized flow in ResolveClientUrl. 	


svn path=/trunk/mcs/; revision=79982
2007-06-18 08:36:49 +00:00
Gert Driesen 1671cb3249 * ObjectStateFormatter.cs: Avoid NRE in Serialize. Fixes bug #81851.
* LosFormatterTest.cs: Added tests for LosFormatter.
* System.Web_test.dll.sources: Added LosFormatterTest.cs.

svn path=/trunk/mcs/; revision=79754
2007-06-15 20:11:35 +00:00
Marek Habersack a74b94c402 This code is for 1.1 only
svn path=/trunk/mcs/; revision=79022
2007-06-08 23:53:55 +00:00
Marek Habersack 1fcd4ba60d 2007-06-09 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: TemplateControl is assigned for
	controls that are placed within ContentPlaceHolder and not for the
	ContentPlaceHolder itself.
	No longer add the overriden version of TemplateSourceDirectory to
	the generated source, all the work is now done in
	Control.TemplateSourceDirectory.

	* BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
	slash, for compatibility with MS.NET

2007-06-09  Marek Habersack  <[email protected]>

	* TemplateControl.cs: make sure TemplateControl is set to the
	current control.

	* Control.cs: TemplateControl property goes up the parent chain if
	the property isn't defined in the current control.
	TemplateSourceDir finally implemented correctly.

2007-06-09  Marek Habersack  <[email protected]>

	* ControlTest.cs: enabled two tests that hadn't been working
	before.


svn path=/trunk/mcs/; revision=79021
2007-06-08 23:51:23 +00:00
Marek Habersack 2addefc24d 2007-06-06 Marek Habersack <[email protected]>
* Control.cs: more changes to the way TemplateSourceDirectory
	works in the 2.0 profile. Take into account situations when a
	control is placed in a UserControl (.ascx) and only then fall back
	to the parent for its TemplateSourceDirectory.

svn path=/trunk/mcs/; revision=78731
2007-06-06 13:06:23 +00:00
Marek Habersack bf0152c8c5 2007-06-05 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
	profile uses the TemplateControl property instead of Parent. This
	allows to return the correct path.

2007-06-05  Marek Habersack  <[email protected]>

	* Control.cs: TemplateSourceDirectory uses TemplateControl to
	lookup the virtual source directory in the 2.0 instead of the
	Parent.
	ResolveClientUrl copes with empty TemplateSourceDirectory in the
	correct way now - the check is made after the basePath checks.
	The changes above make ResolveClientUrl work properly when called
	from within a control residing in a TemplateControl.


svn path=/trunk/mcs/; revision=78624
2007-06-05 12:50:12 +00:00
Vladimir Krasnov 7c4040a6e7 * HtmlTextWriter.cs: EncodeAttributeValue should call HtmlAttributeEncode as documented
svn path=/trunk/mcs/; revision=78180
2007-05-30 09:45:28 +00:00
Marek Habersack 324a2ea444 2007-05-24 Marek Habersack <[email protected]>
* PageParser.cs: added support for the PreviousPageType
	directive.

2007-05-24  Marek Habersack  <[email protected]>

	* PageCompiler.cs: added support for the PreviousPageType directive.

	* Directive.cs: as above.


svn path=/trunk/mcs/; revision=77907
2007-05-24 12:55:14 +00:00
Marek Habersack ec64328027 2007-05-23 Marek Habersack <[email protected]>
* TemplateParser.cs: use VirtualPathUtility.Combine to properly
	create the custom control's virtual path.


svn path=/trunk/mcs/; revision=77848
2007-05-23 16:28:22 +00:00
Marek Habersack 537507d7dd 2007-05-22 Marek Habersack <[email protected]>
* TemplateBuilder.cs: in the absence of containerAttribute,
	default to two-way binding direction.

svn path=/trunk/mcs/; revision=77787
2007-05-22 12:21:43 +00:00
Igor Zelmanovich b882ea3542 2007-05-21 Igor Zelmanovich <[email protected]>
* DataSourceView.cs: refactoring: Update, Insert methods:
	exception is re-thrown from catch scope. 
	It allows actual call stack be shown	


svn path=/trunk/mcs/; revision=77740
2007-05-21 08:08:19 +00:00
Vladimir Krasnov 0d20def22c * TemplateControl.jvm.cs: refactored key in CachedString method
svn path=/trunk/mcs/; revision=77544
2007-05-17 12:15:54 +00:00
Vladimir Krasnov 2aeb5dd66f * HtmlTextWriter.cs: refactoring, created hashtables for tags, styles and attributes arrays, that gives performance improvement in GetTagKey, GetStyleKey and GetAttributeKey methods
svn path=/trunk/mcs/; revision=77465
2007-05-16 09:28:24 +00:00
Marek Habersack 97f2de6812 2007-05-15 Marek Habersack <[email protected]>
* TemplateControl.cs: implemented the 3-parameter overloads of
	GetLocalResourceObject and GetGlobalResourceObject.


svn path=/trunk/mcs/; revision=77440
2007-05-15 21:18:50 +00:00
Marek Habersack c7d897bbf4 2007-05-15 Marek Habersack <[email protected]>
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
	actually look up types.
	
	* ControlBuilder.cs: as above

2007-05-15  Marek Habersack  <[email protected]>

	* BuildProviderCollection.cs: refactoring - use
	HttpApplication.LoadType to actually look up the type.

	* HttpHandlerAction.cs: as above

	* WebConfigurationHost.cs: refactoring - moved the LoadType to
	HttpApplication to share the code between 1.1 and 2.0 profiles.

2007-05-15  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: refactoring - use
	HttpApplication.LoadType to look up types.

2007-05-15  Marek Habersack  <[email protected]>

	* HttpApplication.cs: refactoring - moved LoadType from
	WebConfigurationHost here and made it internal static, in order to
	make the code avaliable from all the places where extended type
	loading is required.


svn path=/trunk/mcs/; revision=77396
2007-05-15 09:35:00 +00:00
Marek Habersack f11f1edba1 2007-05-14 Marek Habersack <[email protected]>
* ClientScriptManager.cs: put the hidden field within a <div>, the
	way MS.NET does it.

svn path=/trunk/mcs/; revision=77330
2007-05-14 07:43:43 +00:00
Gert Driesen 266a7e0e91 * ControlBuilder.cs: Fixed exception message in MapType.
svn path=/trunk/mcs/; revision=77265
2007-05-11 21:59:50 +00:00
Marek Habersack 9c1c012ea4 2007-05-10 Marek Habersack <[email protected]>
* Table.cs: render rows, not controls

	* HyperLink.cs: RenderContents must check if the render method
	delegate is present and, if yes, call the base RenderContents.

	* LinkButton.cs: as above.

	* Label.cs: as above.

	* TableCell.cs: as above.
	This change makes the HeaderTemplate in the Wizard control work.

2007-05-10  Marek Habersack  <[email protected]>

	* Control.cs: small formatting change



svn path=/trunk/mcs/; revision=77164
2007-05-10 21:43:44 +00:00
Igor Zelmanovich 08197c6e07 2007-05-10 Igor Zelmanovich <[email protected]>
* Page.cs: ExecuteRegisteredAsyncTasks:
	implimentation for TARGET_JVM doesn't use WaitHandle.WaitAll, but WaitOne


svn path=/trunk/mcs/; revision=77108
2007-05-10 07:56:13 +00:00
Vladimir Krasnov 04b5bf5d44 * HtmlTextWriter.cs: used classes instead of structs in TARGET_JVM for AddedTag, AddedStyle and AddedAttr members
* TemplateControl.jvm.cs: refactored CachedString method

svn path=/trunk/mcs/; revision=77011
2007-05-09 13:43:30 +00:00
Marek Habersack 040076ea09 2007-05-09 Marek Habersack <[email protected]>
* CollectionBuilder.cs: formatting changes

	* ControlBuilder.cs: if a control enables children as properties,
	has a default property and parser encounters a child tag/container
	with the default property name, discard the default property
	builder in order to avoid invalid sub builder invocation. An
	example is: <asp:DropDownList><Items></Items></asp:DropDownList>
	Formatting changes.
	When checking for empty string, use Length not comparison with ""

svn path=/trunk/mcs/; revision=76995
2007-05-09 11:03:08 +00:00
Marek Habersack 276306277b 2007-05-08 Marek Habersack <[email protected]>
* CssStyleCollection.cs: put the style in the bag each time a key
	is set, otherwise resetting of a key has no effect on rendered
	style.

svn path=/trunk/mcs/; revision=76930
2007-05-08 14:25:17 +00:00
Konstantin Triger 842b94a1c7 cosmetic perf optimization
svn path=/trunk/mcs/; revision=76921
2007-05-08 12:00:21 +00:00
Marek Habersack aa9b586a68 2007-05-07 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for implicit language
	detection. If the language isn't set explicitly in the Page
	directive, the language value taken from the configuration
	considered to be implicit - that is, it can be overwritten by the
	first <script> with the runat="server" and language="xx" sets the
	language for the parser. This makes it possible to have the
	default language set to "C#" and the inline code in, e.g.,
	VisualBasic. 

2007-05-07  Marek Habersack  <[email protected]>

	* AspGenerator.cs: if the parser's language is implicit (i.e. set
	from the default configuration), the first script with the
	language attribute present sets the language of the parser.

svn path=/trunk/mcs/; revision=76870
2007-05-07 19:29:44 +00:00
Marek Habersack e97f1be4f8 2007-05-07 Marek Habersack <[email protected]>
* ControlBuilder.cs: when mapping types, catch casses of missing
	original and mapped types.
	If mapped type doesn't derive from the original type, throw an
	exception. Fixes bug #81553.

svn path=/trunk/mcs/; revision=76855
2007-05-07 18:07:06 +00:00