Commit Graph
1169 Commits
Author SHA1 Message Date
Igor Zelmanovich 62c92ccff3 2007-11-07 Igor Zelmanovich <[email protected]>
* Page.cs: added missing trace information for NET_2_0


svn path=/trunk/mcs/; revision=89095
2007-11-07 12:08:42 +00:00
Igor Zelmanovich 2b8b155de6 when validators state is restored, set flag is_validated=true,
that makes Page.IsValid does not throw exception.

svn path=/trunk/mcs/; revision=88977
2007-11-06 14:07:58 +00:00
Igor Zelmanovich 3a6e972f44 2007-11-06 Igor Zelmanovich <[email protected]>
* Page.cs:
	* Page.jvm.cs:
	affects	TARGET_J2EE only:
	validators state (isValid) is restored on GetBack.	


svn path=/trunk/mcs/; revision=88964
2007-11-06 12:30:29 +00:00
Marek Habersack ecae308f79 2007-11-06 Marek Habersack <[email protected]>
* HtmlForm.cs: a small DetermineRenderUplevel optimization - the
	result is now cached in a nullable boolean variable.
	Render the 'onkeypress' attribute if DefaultButton is used. Fixes
	bug #339426.
2007-11-06  Marek Habersack  <[email protected]>

	* Page.cs: formatting

svn path=/trunk/mcs/; revision=88959
2007-11-06 11:22:15 +00:00
Marek Habersack c6676331ce 2007-11-05 Marek Habersack <[email protected]>
* ClientScriptManager.cs: EventStateFieldName is a constant now.

	* Page.cs: use full control ids when processing post data. Fixes
	bug #317615

svn path=/trunk/mcs/; revision=88932
2007-11-05 22:35:03 +00:00
Marek Habersack 6cddac9528 2007-11-03 Marek Habersack <[email protected]>
* Control.cs: need to append a "/" to TemplateSourceDirectory
	before calling VirtualPathUtility.Combine, in order to get the
	correct physical path to the requested file. Combine looks for the
	last occurrence of "/" to determine where the relative paths
	should be joined.

svn path=/trunk/mcs/; revision=88765
2007-11-03 01:38:00 +00:00
Marek Habersack 19e3ebce13 2007-11-03 Marek Habersack <[email protected]>
* MinimizableAttributeTypeConverter.cs: don't throw on null value,
	call the base class method in that case.
2007-11-03  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: do not call converters specified in
	the member custom attributes if 'str' is null in
	GetExpressionFromString.

svn path=/trunk/mcs/; revision=88762
2007-11-03 00:51:30 +00:00
Marek Habersack a299822de8 2007-11-03 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: don't NRE on a null assembly passed
	to AddAssembly.
	AddAssemblyByName must check the return value of
	Assembly.LoadWithPartialName, as the method doesn't throw on
	missing assembly, it returns null instead.

svn path=/trunk/mcs/; revision=88761
2007-11-03 00:28:48 +00:00
Marek Habersack 4887220bcd 2007-11-03 Marek Habersack <[email protected]>
* ClientScriptManager.cs: eventValidationArray is serialized in an
	optimized fashion, so that its serialized form occupies only as
	many slots as were actually used. It may result in that an array
	of 0 entries will be serialized and then
	restored. EnsureEventValidationArray takes that into consideration
	now.

svn path=/trunk/mcs/; revision=88759
2007-11-03 00:04:51 +00:00
Marek Habersack 6f82e580a4 2007-11-01 Marek Habersack <[email protected]>
* Page.cs, ObjectStateFormatter.cs: use the new
	MachineKeySectionUtils class wherever necessary.
2007-11-01  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added MachineKeySectionUtils.cs
2007-11-01  Marek Habersack  <[email protected]>

	* RolePrincipal.cs, MembershipProvider.cs: use the new
	MachineKeySectionUtils class wherever necessary.

	* FormsAuthentication.cs: use the new MachineKeySectionUtils class
	wherever necessary.
	GetHexString is a private method again.
2007-11-01  Marek Habersack  <[email protected]>

	* MachineKeySection.cs: moved all the internal static methods and
	properties to MachineKeySectionUtils.cs

	* MachineKeySectionUtils.cs: added. This file is included in the
	System.Web.Extensions compilation.
	The old properties from MachineKeySection.cs became methods.
2007-11-01  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: added GetHexString, copied from
	FormsAuthentication.cs. Encryption/decryption routines use methods
	from the new MachineKeySectionUtils class. This is needed for the
	same code to work from both System.Web and System.Web.Extensions.


svn path=/trunk/mcs/; revision=88621
2007-11-01 02:14:52 +00:00
Marek Habersack cc4155bff0 2007-10-29 Marek Habersack <[email protected]>
* TemplateParser.cs: add the file pointed to by the Src or
	CodeFile attributes to the list of page cache dependencies.

	* PageParser.cs, UserControlParser.cs: Add the MasterPage file to
	the list of page cache dependencies.

	* MasterPageParser.cs: add the source pointed to by VirtualPath to
	the list of cache dependencies.

svn path=/trunk/mcs/; revision=88403
2007-10-29 19:23:20 +00:00
Marek Habersack bcb6e84bcf 2007-10-23 Marek Habersack <[email protected]>
* ClientScriptManager.cs: added two constants to define start/end
	script block comments rendering. 1.1 uses HTML comments, while 2.0
	uses a CDATA block.

	* Page.cs: render script blocks with start/end comments taken from
	the ClientScriptManager constants above.

svn path=/trunk/mcs/; revision=87979
2007-10-23 12:39:45 +00:00
Marek Habersack d680953205 The fix for bug #325303 is for the 2.0 profile only
svn path=/trunk/mcs/; revision=87726
2007-10-17 23:04:47 +00:00
Marek Habersack 96c7b2864d 2007-10-17 Marek Habersack <[email protected]>
* TemplateParser.cs: removed code that ignored the Async and
	AsyncTimeout attributes.

	* PageParser.cs: handle the Async and AsyncTimeout attributes
	here. Fixes bug #325450
2007-10-17  Marek Habersack  <[email protected]>

	* PageCompiler.cs: added code to set the AsyncMode and
	AsyncTimeout Page properties.

svn path=/trunk/mcs/; revision=87714
2007-10-17 21:17:41 +00:00
Marek Habersack 5f1046ea5f 2007-10-17 Marek Habersack <[email protected]>
* Control.cs: properly configure control visibility in
	PreRenderRecursiveInternal. The check must be made by looking at
	the Visible value, not at the flags directly. Fixes bug #325303

svn path=/trunk/mcs/; revision=87663
2007-10-17 13:53:18 +00:00
Marek Habersack 21c86a6ebc 2007-10-03 Marek Habersack <[email protected]>
* Page.cs: complete implementation of ValidationGroups. Fixes bug
	#330423. Patch from Juraj Skripsky <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=86825
2007-10-03 18:31:17 +00:00
Marek Habersack 52e766b410 2007-10-02 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: fix the way types are loaded from
	top-level assemblies.

svn path=/trunk/mcs/; revision=86735
2007-10-02 08:39:23 +00:00
Marek Habersack 9b14ae6c0a This is more elegant (thanks JB :))
svn path=/trunk/mcs/; revision=86718
2007-10-01 18:31:24 +00:00
Marek Habersack e3272f53da 2007-10-01 Marek Habersack <[email protected]>
* HttpServerUtility.cs: set a flag when transferring control to
	another page.

	* HttpContext.cs: added an internal InTransit property to carry
	information that HttpServerUtility.Transfer has been used, over to
	the target page.
2007-10-01  Marek Habersack  <[email protected]>

	* Page.cs: do not set IsPostBack to true if we're in transfer from
	another page. Fixes bug #329341

svn path=/trunk/mcs/; revision=86716
2007-10-01 18:21:30 +00:00
Marek Habersack 008a69040e formatting
svn path=/trunk/mcs/; revision=86117
2007-09-20 22:59:03 +00:00
Marek Habersack 9e620f4ab6 2007-09-18 Marek Habersack <[email protected]>
* TemplateParser.cs: VaryByControl OutputCache attribute is
            allowed for both controls and pages in 2.0.

svn path=/trunk/mcs/; revision=85964
2007-09-18 11:44:52 +00:00
Marek Habersack df5c0fc00b 2007-09-11 Marek Habersack <[email protected]>
* WebServiceParser.cs: inputFile is a virtual path to the service,
            not a physical one in GetCompiledType.

svn path=/trunk/mcs/; revision=85628
2007-09-11 09:20:47 +00:00
Marek Habersack ba4f24d13a 2007-09-05 Marek Habersack <[email protected]>
* RootBuilder.cs: make Foundry settable, but protect the backing
            field from being set to null.
2007-09-05  Marek Habersack  <[email protected]>

            * ThemeDirectoryCompiler.cs: all the skin files compiled in one
            batch must share the same component foundry. Under MS.NET if any
            earlier .skin file registers a control prefix any later .skin
            files may use it without registering.

svn path=/trunk/mcs/; revision=85373
2007-09-05 17:32:21 +00:00
Marek Habersack 3b5a85776f 2007-09-04 Marek Habersack <[email protected]>
* TemplateParser.cs: don't optimize for case when 'name' is a full
            assembly name in AddAssemblyByName. Assembly.Load triggers the
            AssemblyResolve event on the current AppDomain if an assembly
            isn't found and we use this mechanism to map names like "App_Code"
            or "App_GlobalResources" to the real names of those dynamic
            assemblies.

svn path=/trunk/mcs/; revision=85322
2007-09-04 20:28:25 +00:00
Igor Zelmanovich d2b70495cf 2007-09-02 Igor Zelmanovich <[email protected]>
* Page.jvm.cs: implemented IsMultiForm property to take 
	the value from configuration.


svn path=/trunk/mcs/; revision=85187
2007-09-02 09:55:52 +00:00
Marek Habersack e61db64874 reformatting
svn path=/trunk/mcs/; revision=85097
2007-08-31 11:51:04 +00:00
Igor Zelmanovich 26e133c649 2007-08-30 Igor Zelmanovich <[email protected]>
* Page.cs: fixed MaintainScrollPositionOnPostBack feature.

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

	* webform.js: fixed MaintainScrollPositionOnPostBack feature.


svn path=/trunk/mcs/; revision=85037
2007-08-30 08:31:00 +00:00
Marek Habersack fae6aca6c4 2007-08-29 Marek Habersack <[email protected]>
* TemplateBuilder.cs: check for and store for later use the
            TemplateContainerAttribute. Added a nullable property
            TemplateInstance to return the value of the attribute.

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

            * TemplateControlCompiler.cs: mark fields corresponding to the
            controls as global references.
            When control tree is constructed and the parent of the current
            builder is a TemplateBuilder marked with the TemplateInstance
            attribute set to Single, use the control's ID as the field
            name. This makes it possible to refer to controls inside templates
            by name instead of by using FindControl.


svn path=/trunk/mcs/; revision=84996
2007-08-29 12:37:35 +00:00
Vladimir Krasnov 8efb5783bf * Control.cs: optimized performance in InitControlsCache()
svn path=/trunk/mcs/; revision=84990
2007-08-29 07:51:52 +00:00
Marek Habersack 47218d0298 reformatting
svn path=/trunk/mcs/; revision=84952
2007-08-28 13:57:11 +00:00
Marek Habersack 50b58c5a4d 2007-08-28 Marek Habersack <[email protected]>
* Page.cs: The following property values are returned from cached
            fields instead of looking them up on Context: Application,
            Response, Request, Cache (as determined by the tests).
            Added a backing field for the Session property.
            Session doesn't throw an exception when Context is null - it
            silently ignores it and throws a session not available exception.
            _context is never used directly, the Context property is used
            instead. Fixes bug #82606

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

            * PageTest.cs: added tests for exceptions that should be thrown
            when the following properties are accessed from a Page descendant
            that overrides the Context property: Response, Cache, Session. The
            Application property test was also added, to check if it is
            properly set to null when no request has been served by the page.

svn path=/trunk/mcs/; revision=84951
2007-08-28 13:50:25 +00:00
Juraj Skripsky 9f0a2c9ab9 2007-08-23 Juraj Skripsky <[email protected]>
* Control.cs (InitControlsCache): Make the hash table case insensitive to
	make FindControl compatible with MS.net again. Add LAMESPEC note. 


svn path=/trunk/mcs/; revision=84694
2007-08-23 13:16:28 +00:00
Marek Habersack dd5ce5833e 2007-08-23 Marek Habersack <[email protected]>
* ProvidersHelper.cs: HttpApplication.LoadTypeFromPrivateBin
            renamed to LoadTypeFromBin.

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

            * AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
            and HttpApplication.LoadTypeFromBin.

            * BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
            AddAssembliesInBin.

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

            * ApplicationHost.cs: set AppDomainSetup.PrivateBinPath to "bin"
            if running on Windows or with MONO_IOMAP in effect, and to
            "Bin:bin" otherwise.

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

            * SimpleWebHandlerParser.cs: use
            HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin and
            LoadAssemblyFromBin.
            Restore the old logic in GetTypeFromBin, also use
            HttpApplication.BinDirectoryAssemblies there.

            * TemplateParser.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.
            Use HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin.

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

            * HttpApplication.cs: added a static array BinDirs which contains
            the common bin directory names we can encounter.
            Added internal static property IsRunningOnWindows.
            Added internal enumerable property BinDirectories to iterate over
            the full paths of the available binary directories.
            Added internal enumerable property BinDirectoryAssemblies to
            iterate over .dll files in the bin directories.
            LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
            LoadTypeFromBin uses BinDirectoryAssemblies.
            
            * HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
            interate over the list of bin dirs.



svn path=/trunk/mcs/; revision=84684
2007-08-23 10:30:37 +00:00
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