Commit Graph
235 Commits
Author SHA1 Message Date
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 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
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 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
Vladimir Krasnov f43dc531ac * Page.cs: ResetEventValidationState call moved back to InternalProcessRequest
svn path=/trunk/mcs/; revision=84390
2007-08-19 12:45:52 +00:00
Marek Habersack 427f1d2e83 2007-08-19 Marek Habersack <[email protected]>
* Page.cs: make sure not to ever pass a null value as the value
            of the postCollection parameter to control's LoadPostData. The
            ProcessPostData's 'data' parameter is no longer passed to
            LoadPostData, instead we pass _requestValueCollection or an empty
            collection if it is null. The controls should always get all the
            request data, no matter if the 'data' parameter is null or
            not. Possible fix for bug #82477.

svn path=/trunk/mcs/; revision=84358
2007-08-18 22:34:22 +00:00
Igor Zelmanovich 9c4fb33a65 2007-08-15 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: 
	- avoid NullRefferenceException from Title property
	when Page does not have <head runat="server>,
	- scriptManager.ResetEventValidationState () is called from Render.
	It allows multiply calling of RenderControl returns the same output.


svn path=/trunk/mcs/; revision=84138
2007-08-15 07:16:26 +00:00
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