Commit Graph
226 Commits
Author SHA1 Message Date
Igor Zelmanovich 37303a210b 2007-07-29 Igor Zelmanovich <[email protected]>
* Page.cs: added TARGET_J2EE variable at client side.

svn path=/trunk/mcs/; revision=82930
2007-07-29 12:39:46 +00:00
Igor Zelmanovich 7bba17dd3c 2007-07-24 Igor Zelmanovich <[email protected]>
* webform.js:
	* WebUIValidation_2.0.js:
	refactoring: provide possibility to define relevant functions in different 
	scopes. (global=window or form element). thus providing a solution for 
	multi form environment.		

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

	* ClientScriptManager.cs:
	* Page.cs:
	* Page.jvm.cs:
	added new internal property IsMultiForm which returns false under
	!TARGET_J2EE (Portal). All client scripts are rendered 
	according this property.	
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* BaseValidator.cs: All client scripts are rendered 
	according IsMultiForm property.


svn path=/trunk/mcs/; revision=82648
2007-07-25 08:59:32 +00:00
Igor Zelmanovich 982b7f89f1 2007-07-28 Igor Zelmanovich <[email protected]>
* Page.cs: refactoring:	__doPostBack client script
	It is a part of adapting System.Web to work whith 
	System.Web.Extensions (AJAX).

svn path=/trunk/mcs/; revision=82509
2007-07-23 14:39:22 +00:00
Igor Zelmanovich 3b8200c20c 2007-07-18 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	scripts, registered using RegisterClientScriptInclude, 
	RegisterClientScriptResource and RegisterClientScriptBlock appear on Page
	in order matches the order in which the scripts were registered.

svn path=/trunk/mcs/; revision=82189
2007-07-18 11:03:17 +00:00
Vladimir Krasnov 651a65a740 * ClientScriptManager.cs: refactored event validation data structure
* Page.cs: fixed InternalProcessRequest, event validation list should be cleared before render

svn path=/trunk/mcs/; revision=81858
2007-07-12 09:26:28 +00:00
Konstantin Triger 1f84b431b4 TARGET_JVM: correctly handle Portal's 'GetBack'
svn path=/trunk/mcs/; revision=80402
2007-06-21 06:19:08 +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
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
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 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
Konstantin Triger 5cff7fd740 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75433
2007-04-05 12:48:48 +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
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
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 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
Vladimir Krasnov b7631fe3f2 Typo fix
svn path=/trunk/mcs/; revision=72264
2007-02-04 12:22:30 +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
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
Miguel de Icaza 8579752eb1 Temporary fix
svn path=/trunk/mcs/; revision=71453
2007-01-22 18:28:54 +00:00
Konstantin Triger 8f896d00c1 ensure the web form client script is registerd before the client script includes are rendered
svn path=/trunk/mcs/; revision=71441
2007-01-22 13:41:03 +00:00
Konstantin Triger 189c3d136c move the WriteClientScriptIncludes to the top of the form, according to the MSDN
svn path=/trunk/mcs/; revision=71422
2007-01-21 15:35:54 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Eyal Alalouf a7135f35cd Add portal support
svn path=/trunk/mcs/; revision=70988
2007-01-14 17:10:38 +00:00
Vladimir Krasnov 79fbfcfa07 * PageTheme.cs: implemented
* Page.cs: fixed InitializeTheme, added PageTheme page initialization
* TemplateControl.cs, 
* TemplateControl.jvm.cs: added XPath, XPathSelect overloads with IXmlNamespaceResolver parameter
* XPathBinder.cs: added Eval, Select overloads with IXmlNamespaceResolver parameter, refactored

svn path=/trunk/mcs/; revision=70661
2007-01-08 16:24:50 +00:00
Igor Zelmanovich 7aa1179b46 2007-01-07 Igor Zelmanovich <[email protected]>
* Page.cs: refactoring: used RegisterHiddenField for _VIEWSTATE field.


svn path=/trunk/mcs/; revision=70587
2007-01-07 12:49:29 +00:00
Igor Zelmanovich 90f9be5ab5 2007-01-04 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: InitializeCulture should be called 
	before creating controls.

svn path=/trunk/mcs/; revision=70460
2007-01-04 10:27:20 +00:00
Marek Habersack f98d7a83ba JavaScript validation fix
svn path=/trunk/mcs/; revision=70440
2007-01-03 22:16:40 +00:00
Konstantin Triger 2a60bdfeaa Add missing IdSeparator propoerty
svn path=/trunk/mcs/; revision=70348
2007-01-02 12:06:24 +00:00
Gonzalo Paniagua Javier 05bc32c8ea 2006-12-31 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: 
	* System.Web.UI.WebControls/LinkButton.cs: show the validation summary
	when client validation and linkbuttons are used. Patch by Juraj
	Skripsky.


svn path=/trunk/mcs/; revision=70294
2006-12-31 19:59:05 +00:00
Igor Zelmanovich 0380ac6627 2006-12-31 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: EventValidation is not performed for CallBack request.


svn path=/trunk/mcs/; revision=70282
2006-12-31 14:25:15 +00:00
Igor Zelmanovich 0d023ab68e 2006-12-27 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: RegisterRequiresPostBack feature.


svn path=/trunk/mcs/; revision=70136
2006-12-27 17:22:36 +00:00
Igor Zelmanovich da64752dd7 2006-12-11 Igor Zelmanovich <[email protected]>
* Page.cs: fixed and optimized ProcessPostData
	The "second try" used for controls that created at OnLoad.
	fixed for controls that use RgisterRequeresPostBack to handle post data.


svn path=/trunk/mcs/; revision=69301
2006-12-11 08:36:17 +00:00
Igor Zelmanovich 4626a6f944 2006-11-29 Igor Zelmanovich <[email protected]>
* Page.cs: The specified theme must exist as either an application theme. 
	If the theme does not exist, an HttpException exception s thrown.


svn path=/trunk/mcs/; revision=69282
2006-12-10 16:03:02 +00:00
Marek Habersack 78c82d7d42 Implement the 2.0 page state persister model, and use it internally int the 1.x profile
svn path=/trunk/mcs/; revision=69254
2006-12-09 00:03:31 +00:00