1186 Commits
Author SHA1 Message Date
Igor Zelmanovich 0add077b86 2007-12-13 Igor Zelmanovich <[email protected]>
* HttpApplication.cs:
	* HttpContext.cs:
	* HttpRequest.cs:
	* HttpServerUtility.cs:
	- When Transfer/Execute is called with preserveForm=true, transferred 
	page is not processed as PostBack but form collection is preserved.
	- When Execute is called more than once, PreviousPage property is set 
	correct.

2007-12-13 Igor Zelmanovich <[email protected]>

	* Page.cs:
	- When Transfer/Execute is called with preserveForm=true, transferred 
	page is not processed as PostBack but form collection is preserved.
	- When Execute is called more than once, PreviousPage property is set 
	correct.

svn path=/trunk/mcs/; revision=91202
2007-12-13 09:08:54 +00:00
Igor Zelmanovich d2f0d382b3 added DecodeNamespace method
svn path=/branches/mainsoft/JSF/mcs/; revision=91121
2007-12-11 16:09:55 +00:00
Igor Zelmanovich d87840514e make Callback works with JSF
svn path=/branches/mainsoft/JSF/mcs/; revision=91080
2007-12-11 10:21:21 +00:00
Konstantin Triger 78ca14f10b root the resolution though JSF
svn path=/branches/mainsoft/JSF/mcs/; revision=91078
2007-12-11 10:14:20 +00:00
Igor Zelmanovich 54ee0aa5d0 fixed ResolveClientUrl and UniqueID
svn path=/branches/mainsoft/JSF/mcs/; revision=91048
2007-12-10 15:19:51 +00:00
Igor Zelmanovich 7ed427ed0c performance optimization in Save/Load state
svn path=/branches/mainsoft/JSF/mcs/; revision=91001
2007-12-09 13:29:10 +00:00
Igor Zelmanovich e1616dd47f fixed HttpContext.CurrentExecutionFilePath for Transfer/Execute
used JSF API for ResolveClientUrl and create action url.

svn path=/branches/mainsoft/JSF/mcs/; revision=90798
2007-12-06 10:08:04 +00:00
Igor Zelmanovich 5460b394ca ClientScriptManager implement IStateManager
to provide access to hidden fields.

svn path=/branches/mainsoft/JSF/mcs/; revision=90548
2007-12-03 15:05:05 +00:00
Igor Zelmanovich 50e9765b9f enhanced JSF implementation
svn path=/branches/mainsoft/JSF/mcs/; revision=90439
2007-11-29 16:00:49 +00:00
Igor Zelmanovich 7a1890486b initial implementation of 'unify request'
svn path=/branches/mainsoft/JSF/mcs/; revision=90267
2007-11-25 14:08:39 +00:00
Marek Habersack ee22092f22 2007-11-22 Marek Habersack <[email protected]>
* OutputCacheParameters.cs: added the VaryByContentEncoding
	property.

	* Page.cs: added new InitCache overload.

	* TemplateParser.cs: added support for the VaryByContentEncodings
	attribute of the OutputCache directive.
2007-11-22  Marek Habersack  <[email protected]>

	* PageCompiler.cs: use
	pageParser.OutputCacheVaryByContentEncodings when initializing the
	output cache in the 2.0 profile.


svn path=/trunk/mcs/; revision=90185
2007-11-22 19:13:29 +00:00
Igor Zelmanovich 5c6b9ea5e2 implement JSF life cycle on the page
added IHttpExtendedHandler interface

svn path=/branches/mainsoft/JSF/mcs/; revision=89931
2007-11-19 15:22:55 +00:00
Vladimir Krasnov 0840dcace2 * Page.jvm.cs: IsMultiForm optimized, cached configuration call
svn path=/trunk/mcs/; revision=89920
2007-11-19 09:46:57 +00:00
Marek Habersack 43546c791d 2007-11-14 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: expect GetTypeFromBin to be called
	with a fully qualified type name and act accordingly. Fixes bug
	#341456.

svn path=/trunk/mcs/; revision=89600
2007-11-14 09:16:36 +00:00
Igor Zelmanovich 0526507069 2007-11-13 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs: 
	Ensure a script resource is included once in multi form environment.


svn path=/trunk/mcs/; revision=89561
2007-11-13 15:56:35 +00:00
Igor Zelmanovich f8dac948dc 2007-11-07 Igor Zelmanovich <[email protected]>
* TraceContext.cs:
	* TraceData.cs: implemented TraceMode feature.	

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

	* PageParser.cs: fixed initial value of tracemode.


svn path=/trunk/mcs/; revision=89102
2007-11-07 13:55:05 +00:00
Igor Zelmanovich daeb045d28 2007-11-07 Igor Zelmanovich <[email protected]>
* Control.cs: removes '#define MONO_TRACE'.
	It allows to run MONO in release mode without supplementary trace info.	


svn path=/trunk/mcs/; revision=89097
2007-11-07 12:40:03 +00:00
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