Commit Graph
1169 Commits
Author SHA1 Message Date
Marek Habersack 279d12b449 Another in the series of compatibility fixes discovered thanks to the QuickStarts... :)
2007-05-04  Marek Habersack  <[email protected]>

	* HtmlAnchor.cs: use ResolveClientUrl when generating
	attributes. Necessary if the control is in a master page which is
	in a different directory than the current page.

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

	* AdRotator.cs: use the new GetPhysicalFilePath method to look up
	the physical path of the ad file.

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

	* TemplateControlCompiler.cs: do not query the parent for
	TemplateSourceDirectory if we are generating code for a Master
	Page.

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

	* Control.cs: added an internal method to resolve a physical path
	to a file from its virtual path considering the possibility that a
	control is placed in a master page, which in turn is referenced
	from a directory another than that of master page itself.


svn path=/trunk/mcs/; revision=76665
2007-05-04 10:58:11 +00:00
Igor Zelmanovich 450ce08119 2007-05-03 Igor Zelmanovich <[email protected]>
* BrowserCapabilities.cs:
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AggregateCacheDependency.cs:
	* CacheDependency.cs:	
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AttributeCollection.cs:
	* DataBindingHandlerAttribute.cs:
	* HtmlTextWriter.cs:
	* PartialCachingControl.cs:
	* TemplateControl.cs:
	* TemplateControl.jvm.cs:
	* XPathBinder.cs:						
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* ControlPropertyNameConverter.css:
	* FontUnitConverter.cs:
	* UnitConverter.cs:
	* ValidatedControlConverter.cs:			
	added missing API.	


svn path=/trunk/mcs/; revision=76622
2007-05-03 14:29:09 +00:00
Igor Zelmanovich 56b057452c 2007-05-03 Igor Zelmanovich <[email protected]>
* CssStyleCollection.cs: optimization:
	used StringBuilder instead string to hold value.
	When added key that not exists in collection, value is recalculated by 
	appending required key to existing value.	


svn path=/trunk/mcs/; revision=76619
2007-05-03 13:05:34 +00:00
Igor Zelmanovich b353b45ab9 2007-05-02 Igor Zelmanovich <[email protected]>
* Control.cs: ResolveClientUrl: optimization.
	if basePath is the same as TemplateSourceDirectory 
	releativeUrl is returned as is.


	* ControlTest.cs: added new test.

svn path=/trunk/mcs/; revision=76564
2007-05-02 13:27:14 +00:00
Igor Zelmanovich a1a9d2c48e 2007-05-02 Igor Zelmanovich <[email protected]>
* Control.cs:
	ResolveClientUrl considers TemplateSourceDirectory property.


svn path=/trunk/mcs/; revision=76558
2007-05-02 09:45:24 +00:00
Marek Habersack 8f217b10af 2007-05-01 Marek Habersack <[email protected]>
* HttpCapabilitiesBase.cs: move the User-Agent code to a separate
	internal method.

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

	* HtmlForm.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

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

	* BaseValidator.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

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

	* PageParser.cs: clientTarget comparisons must be case-insensitive


svn path=/trunk/mcs/; revision=76522
2007-05-01 11:01:22 +00:00
Konstantin Triger 226f536ef3 When formatting, threat empty string as null
svn path=/trunk/mcs/; revision=76501
2007-04-30 15:41:36 +00:00
Marek Habersack da88af32fb 2007-04-27 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: formatting changes.
	AssemblyFoundry looks for the specified namespace+type in the
	top-level assemblies if necessary.

2007-04-27  Marek Habersack  <[email protected]>

	* TemplateControlParser.cs: 2.0 allows 'Namespace' without the
	'Assembly' attribute on tag prefix registration.

	* TemplateParser.cs: do not rely on assembly name being not null.


svn path=/trunk/mcs/; revision=76364
2007-04-27 01:00:43 +00:00
Konstantin Triger 44a090c70e add mainsoft.use.portlet.namespace configuration parameter suppressing adding portlet namespace to the control id
svn path=/trunk/mcs/; revision=76050
2007-04-22 09:40:36 +00:00
Gert Driesen 45616d6c5f * TemplateParser.cs: On 2.0 profile, allow namespace in ClassName
attribute. Fixed part of bug #81399.
* BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
then use it instead of the default ASP namespace. Fixes part of bug
#81399.

svn path=/trunk/mcs/; revision=75909
2007-04-19 07:33:02 +00:00
Konstantin Triger 6dcaa4198e TARGET_J2EE: for portlet do not apply 'auto' logic for culture
svn path=/trunk/mcs/; revision=75878
2007-04-18 13:35:44 +00:00
Konstantin Triger f4fc278132 Add implementation for GetGlobalResourceObject(...Type,String) and GetLocalResourceObject(...Type,String)
svn path=/trunk/mcs/; revision=75726
2007-04-15 12:46:28 +00:00
Marek Habersack 3c2db69767 forgot to commit the ChangeLog
svn path=/trunk/mcs/; revision=75595
2007-04-10 22:38:36 +00:00
Marek Habersack 21c6faf3cc 2007-04-11 Marek Habersack <[email protected]>
* HtmlInputHidden.cs:
	* HtmlSelect.cs:
	* HtmlInputText.cs:
	* HtmlSelect.cs:
	* HtmlInputText.cs:
	* HtmlInputImage.cs:
	* HtmlInputFile.cs:
	* HtmlInputCheckBox.cs:
	* HtmlInputRadioButton.cs:
	* HtmlInputImage.cs: do not register the control for post back
	processing or if it's disabled.

2007-04-11  Marek Habersack  <[email protected]>

	* ImageButton.cs: implement the Enable property and do not
	register for post back if the control isn't enabled.

2007-04-11  Marek Habersack  <[email protected]>

	* Page.cs: check whether control passed to
	RegisterRequiresPostBack implements the IPostBackDataHandler
	interface.

svn path=/trunk/mcs/; revision=75594
2007-04-10 22:38:06 +00:00
Marek Habersack 2cdf3d39be 2007-04-06 Marek Habersack <[email protected]>
* ClientScriptManager.cs: render the 'type' attribute in
	WriteScript and do not render the 'language' attribute when in
	NET_2_0+ mode.

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

	* HttpUtility.cs: added a constant that contains the default query
	parameter character.
	ParseQueryString supports queries with both '&' and ';' parameter
	separators.

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

	* HtmlForm.cs: render the 'name' attribute only when in non-xhtml
	compliant mode.

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

	* AssemblyResourceLoader.cs: use the correct query parameter
	separator char for the current platform version. Fixes bug
	#80633.

svn path=/trunk/mcs/; revision=75480
2007-04-06 11:51:51 +00:00
Marek Habersack b261b168d2 ignore case and use invariant culture on comparison
svn path=/trunk/mcs/; revision=75477
2007-04-06 10:42:49 +00:00
Marek Habersack 88c1522436 adjust for the 1.x profile
svn path=/trunk/mcs/; revision=75476
2007-04-06 10:38:27 +00:00
Marek Habersack b723df471e 2007-04-06 Marek Habersack <[email protected]>
* PagesSection.cs: provide appropriate default value for the
	asyncTimeout setting.

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

	* Page.cs: defaults for ViewStateEncrptionMode and AsyncTimeout
	are read from the pages section, if found.

	* TemplateControlParser.cs: added support for loading
	pages/controls defaults from web.config even if the page/control
	does not have its corresponding directive.
	Added support for reading the CompilationMode attribute.

	* PageParser.cs: added support for loading pages/controls defaults
	as above. Fixes bug #80915.
	Added support for reading the maxPageStateFieldLength setting.
	Added support for reading the pageParserFilter setting.
	

svn path=/trunk/mcs/; revision=75475
2007-04-06 10:29:38 +00:00
Marek Habersack 61bff8fe42 2007-04-06 Marek Habersack <[email protected]>
* ControlBuilder.cs: allow tag mappings from code found 
	in bin/* or App_Code/*. Fixes bug #80811.


svn path=/trunk/mcs/; revision=75467
2007-04-05 22:48:20 +00:00
Konstantin Triger 94be6c96d0 correctly resolve master page
svn path=/trunk/mcs/; revision=75448
2007-04-05 15:06:03 +00:00
Konstantin Triger 5cff7fd740 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75433
2007-04-05 12:48:48 +00:00
Konstantin Triger c1360afb03 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75429
2007-04-05 11:43:27 +00:00
Konstantin Triger c6a17bec7f use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75426
2007-04-05 11:28:59 +00:00
Igor Zelmanovich e3c70962a3 * TemplateControl: GetAssemblyResource is called with absolute virtual path
using VirtualPathUtility.ToAbsilute()

svn path=/trunk/mcs/; revision=75382
2007-04-04 11:22:45 +00:00
Igor Zelmanovich 19ab336035 * TemplateControl: GetAssemblyResource is called with absolute virtual path
* PageMapper: dynamic compilation currently is not supported

svn path=/trunk/mcs/; revision=75375
2007-04-04 07:33:03 +00:00
Konstantin Triger e287c28d0d Path HttpContext to the PageMapper and use it. Throw resource not available exception at the highest level only - when it's known whether we should throw
svn path=/trunk/mcs/; revision=75145
2007-03-29 14:55:30 +00:00
Vladimir Krasnov acf439d7ed * TemplateControl.jvm.cs: performance improvement, added cache for methods and events in user code
svn path=/trunk/mcs/; revision=75132
2007-03-29 12:38:00 +00:00
Marek Habersack e0de2b724f 2007-03-26 Marek Habersack <[email protected]>
* TemplateControl.cs: make local resources work with master
	pages - use the AppRelativeVirtualPath for resource resolution.


svn path=/trunk/mcs/; revision=74976
2007-03-26 12:31:45 +00:00
Marek Habersack 48885962c7 2007-03-26 Marek Habersack <[email protected]>
* TemplateParser.cs: support the meta:resourcekey attribute in
	Page and Control directives. Fixes bug #81204.

2007-03-26  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: refactor assining properties from
	resources a bit to support pages and user controls. Fixes bug
	#81204.

svn path=/trunk/mcs/; revision=74972
2007-03-26 11:42:01 +00:00
Marek Habersack 0fb47feff6 2007-03-21 Marek Habersack <[email protected]>
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132

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

	* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
	AssignAppRelativeVirtualPath if the attribute was defined.

svn path=/trunk/mcs/; revision=74764
2007-03-21 21:14:03 +00:00
Konstantin Triger e8263e009a set noParams if found a parameterless method
svn path=/trunk/mcs/; revision=74750
2007-03-21 16:45:49 +00:00
Marek Habersack 4b8b453f42 2007-03-21 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for setting custom
	attributes of a base class from the Page or Control directive
	attributes.

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

	* UnknownAttributeDescriptor.cs: an internal helper class for
	custom directive attributes support.

	* BaseParser.cs: ThrowParseException can now take variadic
	parameters, for convenience.

	* TemplateParser.cs: add support for custom attributes for the
	Page and Control directives.

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

	* System.Web.dll.sources: added UnknownAttributeDescriptor.cs


svn path=/trunk/mcs/; revision=74734
2007-03-21 14:09:18 +00:00
Igor Zelmanovich 49957fdafc 2007-03-20 Igor Zelmanovich <[email protected]>
* Control.cs: fixed ResolveClientUrl method.

svn path=/trunk/mcs/; revision=74678
2007-03-20 11:25:20 +00:00
Marek Habersack 988df7eff0 2007-03-18 Marek Habersack <[email protected]>
* UrlUtils.cs: GetDirectory always returns a path with trailing
	slash.

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

	* WebConfigurationSettings.cs: fix the GetConfigFromFileName
	directory logic.

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

	* BaseParser.cs: fix BaseVirtualDir to always return app-absolute
	paths.

svn path=/trunk/mcs/; revision=74574
2007-03-18 22:12:53 +00:00
Konstantin Triger 08f092551f Refactoring: use MethodInfo instead of method name for 2.0 profile
svn path=/trunk/mcs/; revision=74562
2007-03-18 13:41:17 +00:00
Marek Habersack 7972533c5d Fix for the test suite, a temporary reversal of previous patches, since it isn't a real fix - the breakage is elsewhere in system.web
svn path=/trunk/mcs/; revision=74546
2007-03-18 00:16:39 +00:00
Marek Habersack 3ee2925bd9 2007-03-17 Marek Habersack <[email protected]>
* MasterPageParser.cs: remove superfluous #ifdef

	* TemplateParser.cs: use VirtualPathUtility here

svn path=/trunk/mcs/; revision=74522
2007-03-17 14:24:15 +00:00
Vladimir Krasnov 0e69501c20 * TemplateControl.jvm.cs: fixed WireupAutomaticEvents, performance optimization
svn path=/trunk/mcs/; revision=74269
2007-03-14 16:52:09 +00:00
Marek Habersack fba0cc826e 2007-03-13 Marek Habersack <[email protected]>
* TemplateParser.cs: name generated classes the same way MS.NET
	does - include the app-relative path to the control/page in the
	class name.
	* PageCompiler.cs: interfaces are to be implemented by the parent
	partial class, not the generated one.
	* TemplateControlCompiler.cs:
	Put field declarations for controls in the partial class.
	* BaseCompiler.cs:
	Change the generated code model for pages/controls to comply with
	the way MS.NET does (partial class contains only two properties
	plus declarations of all the controls, the actual control/page
	class inherits from the partial class). Fixes bug #81001.


svn path=/trunk/mcs/; revision=74167
2007-03-13 13:11:04 +00:00
Adar Wesley 9d3029d695 2007-03-13 Adar Wesley <[email protected]>
* Page.cs: improved Async Page implementation.


svn path=/trunk/mcs/; revision=74160
2007-03-13 09:58:40 +00:00
Marek Habersack 095b2a7004 2007-03-13 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <[email protected]>

        * AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <[email protected]>

        * TemplateControl.cs: implement AppRelativeVirtualPath. Closes bug
        #80634.


svn path=/trunk/mcs/; revision=74159
2007-03-13 09:56:36 +00:00
Marek Habersack 0182349044 forgot to commit the changelog
svn path=/trunk/mcs/; revision=74109
2007-03-12 11:05:57 +00:00
Igor Zelmanovich 3eb00b979a 2007-03-12 Igor Zelmanovich <[email protected]>
* AttributeCollection.cs:
	* CssStyleCollection.cs: fixed: works w/o state bag.	

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

	* Style.cs: optimization: used CssStyleCollection .ctor w/o parameters.	

svn path=/trunk/mcs/; revision=74108
2007-03-12 10:30:01 +00:00
Igor Zelmanovich 544d479cec 2007-03-12 Igor Zelmanovich <[email protected]>
* HtmlTextWriter.cs: fixed:
	- Fixed writing background-image style attribute (different behavior in
	1.1 and 2.0).
	- Does not encode 'name' attribute.
	- Always encode style attributes (for 2.0 only).


svn path=/trunk/mcs/; revision=74107
2007-03-12 10:12:43 +00:00
Marek Habersack 54a3438bef 2007-03-12 Marek Habersack <[email protected]>
* RootBuilder.cs: change the error text to be less misleading.

svn path=/trunk/mcs/; revision=74105
2007-03-12 09:31:50 +00:00
Adar Wesley 4b91e3e87b 2007-03-06 Adar Wesley <[email protected]>
* Page.cs: initial implementation of support for Async=true.  Added
        initial support for ViewStateEncryption.  Implemented
        CreateHtmlTextWriterFromType.

        * PageAsyncTask.cs: Created class to support Async pages.

        * ObjectStateFormatter.cs: Added support for ViewState encryption.

        * HtmlTextWriter.cs: Fixed constructor to accept null TextWriter
        to conform to MS behavior.


svn path=/trunk/mcs/; revision=73797
2007-03-06 10:00:18 +00:00
Marek Habersack 0f6913f8a5 Make the enableSesionState <pages> attribute values case-sensitive. Fixes bug 80913
svn path=/trunk/mcs/; revision=73770
2007-03-06 00:40:11 +00:00
Vladimir Krasnov 92bdc83ebf * Control.jvm.cs: fixed TemplateSourceDirectory property
svn path=/trunk/mcs/; revision=73738
2007-03-05 17:14:10 +00:00
Igor Zelmanovich 7ac9946017 2007-03-05 Igor Zelmanovich <[email protected]>
* CheckBoxList.cs:
	* BulletedList.cs:
	* ListControl.cs:
	* ListItem.cs:
	* RadioButtonList.cs:
	fixed: list controls consider ListItem.Attributes property on render. 

svn path=/trunk/mcs/; revision=73725
2007-03-05 15:54:15 +00:00
Marek Habersack fb27421ce2 Support a few more Page directive attributes
svn path=/trunk/mcs/; revision=73660
2007-03-03 15:26:40 +00:00