From: Argiris K. <be...@us...> - 2005-11-18 10:29:13
|
Update of /cvsroot/magicajax/magicajax/Core/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28093/Core/UI Modified Files: RenderedByScriptControl.cs Log Message: Added 'unloadStoredPage' configuration option that defines whether the stored page will be dropped at the client's page unload event. Moved GetBase64MD5Sum method to Util.cs Index: RenderedByScriptControl.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/RenderedByScriptControl.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RenderedByScriptControl.cs 17 Nov 2005 15:03:16 -0000 1.4 --- RenderedByScriptControl.cs 18 Nov 2005 10:29:04 -0000 1.5 *************** *** 175,184 **** if (!IsChildOfRenderedByScriptControl(this)) { ! // Firefox, when performing a refresh, loads the page but keeps any INPUT ! // field values. Thus, the html of a RenderedByScriptControl is restored ! // as if the page was loaded because of the browser's "Back Button". ! // We cannot avoid this because Firefox also keeps any changes that occured ! // to ViewState, so we need the controls to keep their changes. ! string hiddenStore = this.ClientID + "$RBS_Store"; Page.RegisterHiddenField(hiddenStore, null); Page.RegisterArrayDeclaration("RBS_Controls", String.Format("document.all[\"{0}$RBS_Holder\"]", this.ClientID)); --- 175,197 ---- if (!IsChildOfRenderedByScriptControl(this)) { ! string hiddenStore; ! ! if ( IsPageNoStoreMode ) ! { ! // Firefox, when performing a refresh, loads the page but keeps any INPUT ! // field values. Thus, the html of a RenderedByScriptControl is restored ! // as if the page was loaded because of the browser's "Back Button". ! // We cannot avoid this because Firefox also keeps any changes that occured ! // to ViewState, so we need the controls to keep their changes. ! hiddenStore = this.ClientID + "$RBS_Store"; ! } ! else ! { ! // At storing modes we don't mess with the ViewState field, so use ! // a different name for the hidden field at each page request so that ! // it can be reset for Firefox's "Refresh". ! hiddenStore = this.ClientID + "$RBS_Store" + DateTime.Now.Ticks; ! } ! Page.RegisterHiddenField(hiddenStore, null); Page.RegisterArrayDeclaration("RBS_Controls", String.Format("document.all[\"{0}$RBS_Holder\"]", this.ClientID)); |