Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HiddenFieldPageStatePersister.cs / 1305376 / 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; 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; // VSWhidbey 160556 if (!String.IsNullOrEmpty(viewStateString) || !String.IsNullOrEmpty(Page.ViewStateUserKey)) { 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientSettings.cs
- WsdlBuildProvider.cs
- AuthenticatedStream.cs
- XamlInterfaces.cs
- ChannelServices.cs
- TablePatternIdentifiers.cs
- TableLayoutPanelCellPosition.cs
- RadioButtonAutomationPeer.cs
- GridEntryCollection.cs
- XmlEntity.cs
- EmbeddedMailObjectsCollection.cs
- BaseDataList.cs
- EntityReference.cs
- ImageClickEventArgs.cs
- BitmapPalettes.cs
- TimeSpanConverter.cs
- UnsafePeerToPeerMethods.cs
- Visual3D.cs
- DLinqTableProvider.cs
- FormsIdentity.cs
- Guid.cs
- precedingsibling.cs
- LoginCancelEventArgs.cs
- __Filters.cs
- QuaternionIndependentAnimationStorage.cs
- ServicePoint.cs
- CodeBinaryOperatorExpression.cs
- WindowsRichEdit.cs
- TextViewSelectionProcessor.cs
- DataControlFieldCollection.cs
- EndpointPerformanceCounters.cs
- CompositeActivityMarkupSerializer.cs
- GlobalId.cs
- XmlObjectSerializerReadContextComplex.cs
- ImageDrawing.cs
- ClientBuildManager.cs
- InvokeDelegate.cs
- RowVisual.cs
- AutomationPropertyInfo.cs
- HttpContext.cs
- ListView.cs
- Component.cs
- TemplateControlBuildProvider.cs
- IsolatedStorage.cs
- InputMethodStateChangeEventArgs.cs
- UriExt.cs
- Enlistment.cs
- DateBoldEvent.cs
- TypedTableGenerator.cs
- XmlSerializationWriter.cs
- OTFRasterizer.cs
- XPathDocumentIterator.cs
- DrawingBrush.cs
- PermissionSet.cs
- MenuBindingsEditorForm.cs
- TextBox.cs
- DispatcherProcessingDisabled.cs
- ExpandCollapseProviderWrapper.cs
- UrlMapping.cs
- Type.cs
- SortDescriptionCollection.cs
- TextDocumentView.cs
- MemberPathMap.cs
- Manipulation.cs
- ApplicationFileParser.cs
- ImageClickEventArgs.cs
- WebConfigurationHost.cs
- MonthChangedEventArgs.cs
- AssemblyNameEqualityComparer.cs
- ScheduleChanges.cs
- InvokeSchedule.cs
- UInt16Converter.cs
- MergeLocalizationDirectives.cs
- InternalConfigEventArgs.cs
- MenuAutoFormat.cs
- NullableConverter.cs
- WebPartConnectionsEventArgs.cs
- PropertyMetadata.cs
- DockProviderWrapper.cs
- NumberSubstitution.cs
- ReferenceEqualityComparer.cs
- HtmlFormWrapper.cs
- BamlWriter.cs
- SingleKeyFrameCollection.cs
- OutputCacheProfile.cs
- PropertyInfoSet.cs
- DomainConstraint.cs
- QualifierSet.cs
- InvokeBinder.cs
- FormatterServices.cs
- SimpleType.cs
- WindowsGrip.cs
- MenuEventArgs.cs
- RelatedImageListAttribute.cs
- SafeNativeMemoryHandle.cs
- CellRelation.cs
- SoapIgnoreAttribute.cs
- ObjectNotFoundException.cs
- WindowVisualStateTracker.cs
- sqlpipe.cs