From: Dion O. <dol...@us...> - 2005-11-15 00:31:01
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7835/magicajax/Core Modified Files: MagicAjax NET 2.0.csproj MagicAjaxModule.cs Log Message: Added an alternative panelcontrolstate storage (in hidden form element, instead of Session). To test it, compile with CLIENTSIDE_PANELSTATE (compilation symbol) Index: MagicAjax NET 2.0.csproj =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjax NET 2.0.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MagicAjax NET 2.0.csproj 11 Nov 2005 22:29:39 -0000 1.2 --- MagicAjax NET 2.0.csproj 15 Nov 2005 00:30:53 -0000 1.3 *************** *** 35,39 **** <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants> <DocumentationFile> </DocumentationFile> --- 35,39 ---- <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE;DEBUG;NET_2_0;CLIENTSIDE_PANELSTATE</DefineConstants> <DocumentationFile> </DocumentationFile> *************** *** 95,104 **** </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs"> <SubType>Code</SubType> </Compile> - <Compile Include="CallBackHelper.cs"> - <SubType>Code</SubType> - </Compile> <Compile Include="Collections\ReadOnlyArrayList.cs"> <SubType>Code</SubType> --- 95,102 ---- </ItemGroup> <ItemGroup> + <Compile Include="AjaxCallHelper.cs" /> <Compile Include="AssemblyInfo.cs"> <SubType>Code</SubType> </Compile> <Compile Include="Collections\ReadOnlyArrayList.cs"> <SubType>Code</SubType> *************** *** 110,116 **** <SubType>Code</SubType> </Compile> ! <Compile Include="Interfaces\ICallBackEventHandler.cs"> ! <SubType>Code</SubType> ! </Compile> <Compile Include="Interfaces\IFormDataLoadedEventHandler.cs"> <SubType>Code</SubType> --- 108,112 ---- <SubType>Code</SubType> </Compile> ! <Compile Include="Interfaces\IAjaxCallEventHandler.cs" /> <Compile Include="Interfaces\IFormDataLoadedEventHandler.cs"> <SubType>Code</SubType> *************** *** 152,157 **** <SubType>Code</SubType> </Compile> <Content Include="Web.config" /> - <EmbeddedResource Include="script\CallBackObject.js" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> --- 148,153 ---- <SubType>Code</SubType> </Compile> + <EmbeddedResource Include="script\AjaxCallObject.js" /> <Content Include="Web.config" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> Index: MagicAjaxModule.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MagicAjaxModule.cs 14 Nov 2005 18:50:43 -0000 1.5 --- MagicAjaxModule.cs 15 Nov 2005 00:30:53 -0000 1.6 *************** *** 434,437 **** --- 434,453 ---- } + #if CLIENTSIDE_PANELSTATE + //store hash-states of panel controls + foreach (string key in _context.Items.Keys) + { + if (key.StartsWith("__PANELCONTROLSTATE_")) + { + string keyValue = (string)_context.Items[key]; + if (_request[key] != keyValue) + { + //update + AjaxCallHelper.WriteSetFieldScript(key, keyValue); + } + } + } + #endif + #if NET_2_0 // Check if this request is to add/remove/replace a WebPart |