Code:
/ DotNET / DotNET / 8.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
- DuplexChannelFactory.cs
- TransformCollection.cs
- WrappingXamlSchemaContext.cs
- DataServiceProcessingPipeline.cs
- WaveHeader.cs
- OleDbTransaction.cs
- FastEncoder.cs
- WrappedIUnknown.cs
- CurrentChangingEventManager.cs
- SapiRecognizer.cs
- DataGridViewColumnTypePicker.cs
- Region.cs
- OrthographicCamera.cs
- CodeTypeParameter.cs
- NameValueConfigurationCollection.cs
- Logging.cs
- UnauthorizedAccessException.cs
- latinshape.cs
- RequestQueryProcessor.cs
- DynamicILGenerator.cs
- CompModSwitches.cs
- TimeoutValidationAttribute.cs
- WindowsGraphicsCacheManager.cs
- TryCatch.cs
- ButtonField.cs
- TemplateBindingExtensionConverter.cs
- DropDownList.cs
- BamlResourceSerializer.cs
- SafeLibraryHandle.cs
- EqualityComparer.cs
- RawStylusInputCustomData.cs
- Events.cs
- LayoutSettings.cs
- PcmConverter.cs
- XmlAttribute.cs
- References.cs
- HttpDebugHandler.cs
- MessageSmuggler.cs
- DataViewManager.cs
- QueueProcessor.cs
- QilXmlReader.cs
- RegexCharClass.cs
- ResolvedKeyFrameEntry.cs
- ProfileBuildProvider.cs
- ExtensionQuery.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Utils.cs
- DrawingDrawingContext.cs
- ManagementPath.cs
- ProjectionCamera.cs
- sitestring.cs
- Command.cs
- TiffBitmapEncoder.cs
- DBConcurrencyException.cs
- EndpointAddressMessageFilterTable.cs
- RTTrackingProfile.cs
- CodeCatchClauseCollection.cs
- MachineKeyConverter.cs
- PropertyOverridesDialog.cs
- DataGridPagerStyle.cs
- ToolCreatedEventArgs.cs
- WorkflowServiceOperationListItem.cs
- CachedRequestParams.cs
- OleDbRowUpdatedEvent.cs
- OrderedDictionary.cs
- JsonEncodingStreamWrapper.cs
- PeerApplicationLaunchInfo.cs
- XsltException.cs
- InheritanceContextChangedEventManager.cs
- FuncTypeConverter.cs
- QuestionEventArgs.cs
- StringWriter.cs
- UpdatePanelControlTrigger.cs
- InputScope.cs
- CounterCreationDataConverter.cs
- RepeatBehavior.cs
- DocumentOrderComparer.cs
- ObjectView.cs
- BitmapMetadata.cs
- StickyNoteHelper.cs
- XPathNodeInfoAtom.cs
- GZipObjectSerializer.cs
- XmlSchemaInferenceException.cs
- InplaceBitmapMetadataWriter.cs
- XmlSerializerAssemblyAttribute.cs
- MouseActionConverter.cs
- WebPartCloseVerb.cs
- WaitForChangedResult.cs
- XmlSchemaInclude.cs
- TemplateNameScope.cs
- NameValueFileSectionHandler.cs
- Resources.Designer.cs
- SplashScreen.cs
- ApplicationManager.cs
- NumberAction.cs
- WindowsScrollBarBits.cs
- ServiceOperationViewControl.cs
- UTF7Encoding.cs
- _KerberosClient.cs
- UnmanagedMarshal.cs