1186 Commits
Author SHA1 Message Date
Igor Zelmanovich c9fb7da942 2007-08-23 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs: encode values of hidden fields. 


svn path=/trunk/mcs/; revision=84683
2007-08-23 09:22:21 +00:00
Marek Habersack fcc675453f 2007-08-21 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

2007-08-21  Marek Habersack  <[email protected]>

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

2007-08-21  Marek Habersack  <[email protected]>

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

2007-08-21  Marek Habersack  <[email protected]>

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

2007-08-21  Marek Habersack  <[email protected]>

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

2007-08-21  Marek Habersack  <[email protected]>

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

2007-08-21  Marek Habersack  <[email protected]>

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

svn path=/trunk/mcs/; revision=84589
2007-08-21 21:13:54 +00:00
Igor Zelmanovich d816ca7ff2 2007-08-21 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs: fixed onsubmit script for MultiForm environment 


svn path=/trunk/mcs/; revision=84558
2007-08-21 15:29:24 +00:00
Marek Habersack 54ba93e32d 2007-08-20 Marek Habersack <[email protected]>
* MasterPage.cs: use the place holder IDs collection instead of
	the placholder collection to see if we have the place holder in
	the master page. Fixes bug #82485.

	* MasterPageParser.cs: store the content place holder ids in the
	internal cache to gain access to them when needed.

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

	* ContentPlaceHolderBuilder.cs: store place holder id in the
	parser's internal place holder id list for later reference. Fixes
	bug #82485.

svn path=/trunk/mcs/; revision=84441
2007-08-20 10:38:56 +00:00
Vladimir Krasnov 610dbbd4ee * MasterPageParser.jvm.cs: optimized GetDirectory call
* PageTheme.cs: optimized string formatting in CreateSkinKey

svn path=/trunk/mcs/; revision=84400
2007-08-19 15:18:29 +00:00
Vladimir Krasnov f43dc531ac * Page.cs: ResetEventValidationState call moved back to InternalProcessRequest
svn path=/trunk/mcs/; revision=84390
2007-08-19 12:45:52 +00:00
Marek Habersack 427f1d2e83 2007-08-19 Marek Habersack <[email protected]>
* Page.cs: make sure not to ever pass a null value as the value
            of the postCollection parameter to control's LoadPostData. The
            ProcessPostData's 'data' parameter is no longer passed to
            LoadPostData, instead we pass _requestValueCollection or an empty
            collection if it is null. The controls should always get all the
            request data, no matter if the 'data' parameter is null or
            not. Possible fix for bug #82477.

svn path=/trunk/mcs/; revision=84358
2007-08-18 22:34:22 +00:00
Gert Driesen c344c3b5d8 * MasterPage.cs: Include relative URL of MasterPage in exception
message.

svn path=/trunk/mcs/; revision=84347
2007-08-18 07:43:59 +00:00
Marek Habersack 8ad2ae5809 2007-08-18 Marek Habersack <[email protected]>
* MasterPage.cs: if a ContentPlaceHolder ID is not found in the
            associated MasterPage, throw an exception. This is compatible with
            what MS.NET does. Fixes bug #82447.

svn path=/trunk/mcs/; revision=84342
2007-08-18 01:34:40 +00:00
Igor Zelmanovich 9c4fb33a65 2007-08-15 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: 
	- avoid NullRefferenceException from Title property
	when Page does not have <head runat="server>,
	- scriptManager.ResetEventValidationState () is called from Render.
	It allows multiply calling of RenderControl returns the same output.


svn path=/trunk/mcs/; revision=84138
2007-08-15 07:16:26 +00:00
Vladimir Krasnov 3bb6bbe8df * Control.cs: optimized GetDirectory call in ResolveClientUrl
svn path=/trunk/mcs/; revision=84076
2007-08-14 13:45:38 +00:00
Vladimir Krasnov efee098711 * ClientScriptManager.cs: otimized string.Replace in GetScriptLiteral
svn path=/trunk/mcs/; revision=84075
2007-08-14 13:32:35 +00:00
Marek Habersack de3974edad 2007-08-14 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: remove unused field.

2007-08-14  Marek Habersack  <[email protected]>

	* Control.cs: include the actual exception when reporting control
	id clash.

2007-08-14  Marek Habersack  <[email protected]>

	* Roles.cs: remove unused field.

	* SqlMembershipProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: remove unused variable.

	* ChangePassword.cs: remove unused variable.

	* RoleGroupCollection.cs: OnValidate shouldn't be overridden.

2007-08-14  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not hide this_lock.



svn path=/trunk/mcs/; revision=84041
2007-08-14 10:52:59 +00:00
Gert Driesen b857f8cee5 * PagesConfigurationHandler.cs: Use enum for EnableSessionState.
* PagesConfiguration.cs: Use enum for EnableSessionState.
* PagesEnableSessionState.cs: Marked internal on 1.0 profile.
* PageParser.cs: Replace enableSessionState and readOnlySessionState
bools with enum backed field. Move 1.0 profile code for checking value
of EnableSessionState pages config to PagesConfigurationHandler.       
Fixes bug #82392 for 1.0 profile.

svn path=/trunk/mcs/; revision=83810
2007-08-10 12:43:23 +00:00
Marek Habersack 36382adfe5 2007-08-09 Marek Habersack <[email protected]>
* PageParser.cs: honor web.config enableSessionState
	ReadOnly setting instead of overwriting based on default value for 
	page directive EnableSessionState. Patch from Joel Reed
	<[email protected]>, thanks! Fixes bug #82392

svn path=/trunk/mcs/; revision=83807
2007-08-10 10:32:25 +00:00
Vladimir Krasnov cefc989dab * CssStyleCollection.cs: used ListDictionary instead of HybridDictionary as underlaying data structure
svn path=/trunk/mcs/; revision=83754
2007-08-09 14:00:19 +00:00
Vladimir Krasnov 0be598f423 * Control.cs: refactoring of LookForControlByName with caching
svn path=/trunk/mcs/; revision=83578
2007-08-07 11:34:40 +00:00
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