Commit Graph
595 Commits
Author SHA1 Message Date
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
Igor Zelmanovich 1e9ca637a8 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	refactoring: 'theForm' variable is always declared on client. 
	'__EVENTTARGET' and '__EVENTARGUMENT' hidden fields is rendered using 
	RegisterHiddenField API. 'WebForm_OnSubmit' declared as function of form. 	

svn path=/trunk/mcs/; revision=72830
2007-02-14 13:53:09 +00:00
Vladimir Krasnov 488147fe15 * Page.cs: fixed OnInit, adding css should throw exception if no header present on the page
svn path=/trunk/mcs/; revision=72828
2007-02-14 13:44:41 +00:00
Igor Zelmanovich a7f893772d 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: __doPostBack considers 2.0 features 
	such RegisterOnSubmitStatement

svn path=/trunk/mcs/; revision=72821
2007-02-14 12:03:40 +00:00
Igor Zelmanovich 4ec09efa0f 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	implemented RegisterOnSubmitStatement for 2.0	

svn path=/trunk/mcs/; revision=72810
2007-02-14 07:50:51 +00:00
Igor Zelmanovich 35e4dec3b5 2007-02-13 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs: EventValidation feature optimization on Callback.


svn path=/trunk/mcs/; revision=72779
2007-02-13 14:58:32 +00:00
Igor Zelmanovich 7dc14fae8e 2007-02-013 Igor Zelmanovich <[email protected]>
* Page.cs: fixed exception handling on Callback at client.

svn path=/trunk/mcs/; revision=72775
2007-02-13 14:40:35 +00:00
Marek Habersack cb1ac8da11 Make sure to create specific cultures.
svn path=/trunk/mcs/; revision=72474
2007-02-08 13:05:58 +00:00
Vladimir Krasnov ffc117e499 * webform.js: added validators context init for j2ee portal support
* WebUIValidation_2.0.js: added SetValidatorContext function, refactored evaluation function init ValidatorOnLoad and Page_ClientValidate
* ClientScriptManager.cs: added array declaration also as member of form in TARGET_J2EE for j2ee portal support. 
Added validators context init for GetClientValidationEvent under TARGET_J2EE for j2ee portal support.
* Page.cs: fixed OnFormPostRender, render array declarations after postback script.

svn path=/trunk/mcs/; revision=72465
2007-02-08 10:29:55 +00:00
Igor Zelmanovich 0f0f1e552c 2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	client scripts (webform.js, callback.js and 
	MaintainScrollPositionOnPostBack.js) were merged into one resource file.

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

	* MaintainScrollPositionOnPostBack.js:
	* webform.js:
	* callback.js:	
	merged into one resource file.

svn path=/trunk/mcs/; revision=72408
2007-02-07 13:03:23 +00:00
Igor Zelmanovich 47db4300a8 2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
	http://msdn2.microsoft.com/en-us/library/ms178141.aspx	 
	LAMESPEC: on Callback IsPostBack is set to false, but true.


svn path=/trunk/mcs/; revision=72271
2007-02-04 16:52:19 +00:00
Igor Zelmanovich 98b3130e6f 2007-02-04 Igor Zelmanovich <[email protected]>
* Button.cs:
	* ButtonField.cs:
	* CommandField.cs:
	* DataControlButton.cs:
	* DataControlField.cs:
	* ImageButton.cs:
	* PagerSettings.cs:						
	Internal classes are used in databound controls for buttons 
	are derived from right types. It allows to have access to them by casting
	to public types. This trick is used in one of starter kits of MS.

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

	* Page.cs: 
	VerifyRenderingInServerForm does not fire exception when IsCallback

svn path=/trunk/mcs/; revision=72269
2007-02-04 16:24:33 +00:00
Igor Zelmanovich b62028a984 2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	fixed RegisterClientScriptInclude: all includes that was registered before 
	rendering are rendered at begin form.		

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

	* Panel.cs: fixed: reverted r71441.
	* TreeView.cs: used internal RegisterWebFormClientScript API 
	to cause the relevant script be included.	

svn path=/trunk/mcs/; revision=72258
2007-02-04 12:02:58 +00:00
Marek Habersack 61df9ff1d2 Fix for bug 80532
svn path=/trunk/mcs/; revision=72245
2007-02-03 21:55:00 +00:00
Adar Wesley 4be48fc47e 2007-02-01 Adar Wesley <[email protected]>
* FormView.cs: fixed events ModeChanging and ModeChanged
        to be raized in all relevant situations.

2007-02-01  Adar Wesley <[email protected]>

        * Control.cs: Changed UniqueId implementation to have '$' and not ':'
        to conform to MS.  This led to updating several Tests that referenced
        the UniqueId as string.

svn path=/trunk/mcs/; revision=72102
2007-02-01 16:21:30 +00:00
Eyal Alalouf 2da5bfd2a2 Fix last changes for TARGET_JVM.
svn path=/trunk/mcs/; revision=71955
2007-01-30 13:29:26 +00:00
Igor Zelmanovich f4e3625f18 2007-01-29 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	CallBack works with EvantValidation.		


svn path=/trunk/mcs/; revision=71901
2007-01-29 16:42:03 +00:00
Eyal Alalouf 3d357ffc84 Add support for multiple fomrs on the client side in case of TARGET_J2EE portal support.
svn path=/trunk/mcs/; revision=71699
2007-01-25 18:12:05 +00:00
Vladimir Krasnov 610f2d36a3 * Page.cs: fixed CheckForValidationSupport, SupportsEventValidationAttribute should be checked at only one level\n * TableTest.cs: removed NotWorking attribute
svn path=/trunk/mcs/; revision=71588
2007-01-24 12:58:50 +00:00
Vladimir Krasnov bd11c8343c * TemplateControl.jvm.cs: ParseControl not supported, added limited implementation if TestDeviceFilter
* TemplateControlTest.cs: removed not working attributes, TARGET_JVM for AppRelativeVirtualPath property tests

svn path=/trunk/mcs/; revision=71513
2007-01-23 15:09:15 +00:00
Konstantin Triger cf6386c0c9 ensure the callback client script isregistered before the client script includes are rendered
svn path=/trunk/mcs/; revision=71444
2007-01-22 14:18:49 +00:00