Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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(); } } // 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
- COMException.cs
- AlignmentYValidation.cs
- BindingGroup.cs
- DictionaryContent.cs
- MetadataCache.cs
- CompositeTypefaceMetrics.cs
- FlowDocumentPaginator.cs
- CompilerTypeWithParams.cs
- SystemKeyConverter.cs
- DataBindEngine.cs
- ReturnType.cs
- CompareValidator.cs
- EntityDataSourceView.cs
- SqlComparer.cs
- DeferredTextReference.cs
- EmptyReadOnlyDictionaryInternal.cs
- ResourceIDHelper.cs
- Misc.cs
- DrawingContextDrawingContextWalker.cs
- VolatileResourceManager.cs
- SqlTopReducer.cs
- PerspectiveCamera.cs
- MouseOverProperty.cs
- Cursors.cs
- SymbolMethod.cs
- ComponentChangedEvent.cs
- VirtualDirectoryMappingCollection.cs
- NamespaceDecl.cs
- NullableDoubleSumAggregationOperator.cs
- Peer.cs
- HandlerMappingMemo.cs
- EntityDataSourceConfigureObjectContext.cs
- RemotingSurrogateSelector.cs
- CompiledELinqQueryState.cs
- RunWorkerCompletedEventArgs.cs
- RichTextBoxConstants.cs
- HttpDebugHandler.cs
- baseaxisquery.cs
- GradientBrush.cs
- StronglyTypedResourceBuilder.cs
- HybridCollection.cs
- DefaultProxySection.cs
- DataBinder.cs
- ToolStripOverflowButton.cs
- WpfKnownType.cs
- URLIdentityPermission.cs
- DrawTreeNodeEventArgs.cs
- EntityDesignerBuildProvider.cs
- MSHTMLHost.cs
- CatalogZoneAutoFormat.cs
- OLEDB_Util.cs
- HttpListenerRequestUriBuilder.cs
- Binding.cs
- LinqDataView.cs
- VisualStyleRenderer.cs
- PreviewKeyDownEventArgs.cs
- SqlOuterApplyReducer.cs
- ExpressionBuilderContext.cs
- AddInBase.cs
- FileBasedResourceGroveler.cs
- Transform3DGroup.cs
- ElementHost.cs
- RectAnimationUsingKeyFrames.cs
- SqlNodeAnnotation.cs
- QuadraticEase.cs
- bidPrivateBase.cs
- DataGridViewComboBoxCell.cs
- FastEncoderWindow.cs
- ExtensibleClassFactory.cs
- LinqDataSourceStatusEventArgs.cs
- EpmAttributeNameBuilder.cs
- SqlCrossApplyToCrossJoin.cs
- StartUpEventArgs.cs
- Marshal.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- GridViewDeleteEventArgs.cs
- LambdaReference.cs
- XmlCharCheckingReader.cs
- AttributeParameterInfo.cs
- OutputCacheSection.cs
- DbExpressionVisitor.cs
- SqlTypeConverter.cs
- TemplateLookupAction.cs
- _SafeNetHandles.cs
- QueueException.cs
- WriteableBitmap.cs
- MetadataException.cs
- DataBindingList.cs
- RefreshPropertiesAttribute.cs
- SettingsSavedEventArgs.cs
- PnrpPermission.cs
- CalendarAutoFormat.cs
- SourceLineInfo.cs
- XmlTextReaderImpl.cs
- PopOutPanel.cs
- EntityViewGenerationAttribute.cs
- SortedList.cs
- CorrelationService.cs
- DataRelation.cs
- XmlLinkedNode.cs