Commit Graph
915 Commits
Author SHA1 Message Date
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
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
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
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
Marek Habersack 3c2db69767 forgot to commit the ChangeLog
svn path=/trunk/mcs/; revision=75595
2007-04-10 22:38:36 +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 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
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
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
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
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
Vladimir Krasnov 92bdc83ebf * Control.jvm.cs: fixed TemplateSourceDirectory property
svn path=/trunk/mcs/; revision=73738
2007-03-05 17:14:10 +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
Igor Zelmanovich 00721566e3 2007-02-26 Igor Zelmanovich <[email protected]>
* TemplateControl.cs:
	* TemplateControl.jvm.cs: fixed: AutoEventWireup feature: 
	Method 'Page_XXX' is declared in the base class must be 
	called even is private.


svn path=/trunk/mcs/; revision=73458
2007-02-27 12:30:12 +00:00
Vladimir Krasnov 5ac24f7550 * Control.cs: fixed AppRelativeTemplateSourceDirectory property, should not return AppRelativeTemplateSourceDirectory of master page
svn path=/trunk/mcs/; revision=73436
2007-02-26 16:06:17 +00:00
Igor Zelmanovich 4a0f6713a1 2007-02-26 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs: fixed: GetScriptLiteral escapes back-slash:

svn path=/trunk/mcs/; revision=73419
2007-02-26 10:21:12 +00:00
Igor Zelmanovich 58bdfc606e 2007-02-22 Igor Zelmanovich <[email protected]>
* TemplateControl.cs: added missing property AppRelativeVirtualPath

svn path=/trunk/mcs/; revision=73320
2007-02-22 16:00:12 +00:00
Konstantin Triger 1e45db1a65 remove CodeGenerator.IsValidLanguageIndependentIdentifier check from Global.asax inherits attribute to let inherits='A.B' construct
svn path=/trunk/mcs/; revision=73240
2007-02-21 09:27:25 +00:00
Igor Zelmanovich 3168c4a908 2007-02-20 Igor Zelmanovich <[email protected]>
* ObjectStateFormatter.cs:
	optimization for serialization of primitive type arrays	

svn path=/trunk/mcs/; revision=73152
2007-02-20 10:04:33 +00:00
Igor Zelmanovich 6631487c2c 2007-02-19 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.cs:			 
	* Page.cs:
	implemented PostBackOptions.TrackFocus feature.	

svn path=/trunk/mcs/; revision=73123
2007-02-19 17:38:05 +00:00
Igor Zelmanovich 2cb334b390 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: for 2.0: refactoring:
	prepare infrastructure for Form.SubmitDisabledControls feature	 

2007-02-19  Igor Zelmanovich  <[email protected]>

	* HtmlInputCheckBox.cs:
	* HtmlInputControl.cs:
	* HtmlInputHidden.cs:
	* HtmlInputRadioButton.cs:
	* HtmlInputText.cs:
	* HtmlSelect.cs:
	* HtmlTextArea.cs:
	fixed: Form.SubmitDisabledControls feature:	
	not all HtmlInputControl need to be reenabled on client.		  


svn path=/trunk/mcs/; revision=73102
2007-02-19 10:19:11 +00:00
Eyal Alalouf 9396a91227 add Http callback support for J2EE portlets.
svn path=/trunk/mcs/; revision=73071
2007-02-18 12:28:38 +00:00
Igor Zelmanovich 5b95f97fbd 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: for 2.0: 
	'__EVENTTARGET' and '__EVENTARGUMENT' hidden fields are 
	registered only once. 	


svn path=/trunk/mcs/; revision=72843
2007-02-14 15:54:19 +00:00
Igor Zelmanovich 93c2a62294 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: for 2.0: '__doPostBack' declared as function of form.
	convention to use 'currForm' instead 'myForm'	

svn path=/trunk/mcs/; revision=72842
2007-02-14 15:37:00 +00:00
Igor Zelmanovich b9f726a2a4 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	including 'webform.js' requires '__doPostBack' on the form be rendered.  

svn path=/trunk/mcs/; revision=72832
2007-02-14 14:14:39 +00:00