Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / HiddenFieldPageStatePersister.cs / 2 / HiddenFieldPageStatePersister.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Collections.Specialized; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class HiddenFieldPageStatePersister : PageStatePersister { public HiddenFieldPageStatePersister(Page page) : base (page) { } public override void Load() { NameValueCollection requestValueCollection = Page.RequestValueCollection; if (requestValueCollection == null) { return; } string viewStateString = null; try { viewStateString = Page.RequestViewStateString; // if (!String.IsNullOrEmpty(viewStateString)) { Pair combinedState = (Pair)Util.DeserializeWithAssert(StateFormatter, viewStateString); ViewState = combinedState.First; ControlState = combinedState.Second; } } catch (Exception e) { // throw if this is a wrapped ViewStateException -- mac validation failed if (e.InnerException is ViewStateException) { throw; } ViewStateException.ThrowViewStateError(e, viewStateString); } } ////// To be supplied. /// public override void Save() { if (ViewState != null || ControlState != null) { Page.ClientState = Util.SerializeWithAssert(StateFormatter, new Pair(ViewState, ControlState)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DES.cs
- MessageQueueConverter.cs
- InputLanguageSource.cs
- ArrayTypeMismatchException.cs
- ReaderWriterLockWrapper.cs
- ListViewInsertedEventArgs.cs
- DmlSqlGenerator.cs
- ForceCopyBuildProvider.cs
- PeerName.cs
- BooleanAnimationUsingKeyFrames.cs
- VirtualDirectoryMapping.cs
- SerializerDescriptor.cs
- recordstatefactory.cs
- PropertyTabAttribute.cs
- SurrogateChar.cs
- SafeReadContext.cs
- RelationshipEndCollection.cs
- XpsSerializationException.cs
- SelectionHighlightInfo.cs
- KnownIds.cs
- TranslateTransform3D.cs
- DeploymentSectionCache.cs
- FontFamily.cs
- BooleanFacetDescriptionElement.cs
- UrlParameterReader.cs
- FragmentQueryKB.cs
- ShaperBuffers.cs
- ExpressionList.cs
- TextBoxBase.cs
- RepeatInfo.cs
- ISO2022Encoding.cs
- AggregateNode.cs
- EventDrivenDesigner.cs
- Operators.cs
- BulletedListEventArgs.cs
- Speller.cs
- XmlQueryType.cs
- DataServicePagingProviderWrapper.cs
- SystemBrushes.cs
- SecurityRuntime.cs
- CheckBoxFlatAdapter.cs
- OleDbFactory.cs
- NavigatorInput.cs
- ThreadAbortException.cs
- DateRangeEvent.cs
- ProvidePropertyAttribute.cs
- Model3DCollection.cs
- ASCIIEncoding.cs
- ProjectionPlanCompiler.cs
- DataContract.cs
- FilterableAttribute.cs
- CookieProtection.cs
- InplaceBitmapMetadataWriter.cs
- TemplateBindingExpression.cs
- DataListCommandEventArgs.cs
- FormattedTextSymbols.cs
- TypeDelegator.cs
- DataRecord.cs
- DESCryptoServiceProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- Trustee.cs
- CodeGen.cs
- XsltLoader.cs
- DataGridViewRowsRemovedEventArgs.cs
- DeviceContext.cs
- PropertyRef.cs
- PassportAuthentication.cs
- QilGenerator.cs
- PopOutPanel.cs
- StateRuntime.cs
- SafeThreadHandle.cs
- ProcessModelInfo.cs
- ObjectSpanRewriter.cs
- UICuesEvent.cs
- XamlSerializerUtil.cs
- UnsafePeerToPeerMethods.cs
- FigureHelper.cs
- DbProviderManifest.cs
- HttpModuleCollection.cs
- HostedImpersonationContext.cs
- ToolboxItem.cs
- TraceSwitch.cs
- DrawingAttributes.cs
- ConfigXmlText.cs
- FileNotFoundException.cs
- QilInvoke.cs
- UpWmlMobileTextWriter.cs
- WebServiceHandlerFactory.cs
- OlePropertyStructs.cs
- CqlBlock.cs
- PrintDialog.cs
- SqlDataSource.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DataGridViewCellStyle.cs
- MetafileHeader.cs
- StandardCommandToolStripMenuItem.cs
- AutomationPeer.cs
- PeerConnector.cs
- GreenMethods.cs
- CustomSignedXml.cs