Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / PageStatePersister.cs / 1 / PageStatePersister.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Collections; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class PageStatePersister { private Page _page; private object _viewState; private object _controlState; private IStateFormatter _stateFormatter; protected PageStatePersister (Page page) { if (page == null) { throw new ArgumentNullException("page", SR.GetString(SR.PageStatePersister_PageCannotBeNull)); } _page = page; } public object ControlState { get { return _controlState; } set { _controlState = value; } } ////// Provides the formatter used to serialize and deserialize the object graph representing the /// state to be persisted. /// protected IStateFormatter StateFormatter { get { if (_stateFormatter == null) { _stateFormatter = Page.CreateStateFormatter(); } return _stateFormatter; } } protected Page Page { get { return _page; } set { _page = value; } } public object ViewState { get { return _viewState; } set { _viewState = value; } } public abstract void Load(); public abstract void Save(); } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CacheDependency.cs
- TargetParameterCountException.cs
- TimelineCollection.cs
- BitmapFrameDecode.cs
- CommentEmitter.cs
- ActivityDefaults.cs
- TraceSwitch.cs
- OutputCacheSection.cs
- ListBoxAutomationPeer.cs
- DataGridViewColumnConverter.cs
- SerializationFieldInfo.cs
- IndentTextWriter.cs
- FragmentQuery.cs
- RadialGradientBrush.cs
- DiscoveryServiceExtension.cs
- MasterPageBuildProvider.cs
- DocumentXmlWriter.cs
- SQLChars.cs
- ListSortDescriptionCollection.cs
- UTF7Encoding.cs
- MarkupCompilePass2.cs
- SocketPermission.cs
- BitmapEffect.cs
- LogEntryHeaderv1Deserializer.cs
- XMLSchema.cs
- CompletionCallbackWrapper.cs
- WeakReferenceList.cs
- ParameterCollection.cs
- EntityDataSourceQueryBuilder.cs
- TransactionOptions.cs
- SupportingTokenParameters.cs
- MonitorWrapper.cs
- NavigationFailedEventArgs.cs
- NestedContainer.cs
- DbDeleteCommandTree.cs
- Vector3DKeyFrameCollection.cs
- ProcessModelInfo.cs
- ActivationServices.cs
- EventLogEntry.cs
- RefExpr.cs
- EnumValidator.cs
- ValidationResult.cs
- Int64.cs
- ManipulationDevice.cs
- AddingNewEventArgs.cs
- TreeIterator.cs
- PageBreakRecord.cs
- OutOfProcStateClientManager.cs
- XPathScanner.cs
- DetailsViewModeEventArgs.cs
- Site.cs
- RectIndependentAnimationStorage.cs
- FaultContractInfo.cs
- KeyedCollection.cs
- DelayLoadType.cs
- AnnotationHelper.cs
- TimeSpanConverter.cs
- ReachPageContentCollectionSerializerAsync.cs
- TreeView.cs
- Floater.cs
- InfoCardXmlSerializer.cs
- TemplateModeChangedEventArgs.cs
- SerializationTrace.cs
- ProfileProvider.cs
- SHA1CryptoServiceProvider.cs
- StickyNoteContentControl.cs
- DbSetClause.cs
- NetMsmqSecurityElement.cs
- VirtualDirectoryMapping.cs
- ApplicationManager.cs
- BufferModesCollection.cs
- ProfileSettingsCollection.cs
- StagingAreaInputItem.cs
- GridViewColumnCollection.cs
- XmlSchemaAttributeGroupRef.cs
- XmlAnyElementAttributes.cs
- EnumerableCollectionView.cs
- HGlobalSafeHandle.cs
- DesignTimeParseData.cs
- SoapFormatterSinks.cs
- Point3DCollectionConverter.cs
- AnnotationStore.cs
- Size3DConverter.cs
- TextTabProperties.cs
- XsltArgumentList.cs
- SoapAttributeOverrides.cs
- ReadOnlyObservableCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PasswordRecovery.cs
- DoubleAnimation.cs
- MetafileHeaderWmf.cs
- DiscoveryExceptionDictionary.cs
- SmtpNtlmAuthenticationModule.cs
- XmlReflectionImporter.cs
- DbConnectionStringCommon.cs
- CodeDefaultValueExpression.cs
- SmiEventSink_DeferedProcessing.cs
- ResourceDisplayNameAttribute.cs
- Rotation3DAnimation.cs
- RepeaterItemCollection.cs