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
- EntityWithChangeTrackerStrategy.cs
- WebBrowserProgressChangedEventHandler.cs
- EncryptedKey.cs
- ResourcePool.cs
- WmlLinkAdapter.cs
- XmlMapping.cs
- XmlComplianceUtil.cs
- PostBackOptions.cs
- Connector.cs
- CompModSwitches.cs
- RTLAwareMessageBox.cs
- TableRow.cs
- StreamReader.cs
- DescendantBaseQuery.cs
- EditorZone.cs
- SchemaMerger.cs
- CellParagraph.cs
- CallContext.cs
- XPathException.cs
- FragmentQuery.cs
- CodeMethodReturnStatement.cs
- ArrayWithOffset.cs
- DbConnectionPoolCounters.cs
- Model3D.cs
- EmptyQuery.cs
- AlignmentYValidation.cs
- EndEvent.cs
- GiveFeedbackEventArgs.cs
- BasicViewGenerator.cs
- ProfileService.cs
- safex509handles.cs
- ServiceHttpModule.cs
- PersistenceTypeAttribute.cs
- CategoryGridEntry.cs
- DiscoveryClientBindingElement.cs
- DetailsViewModeEventArgs.cs
- ObjectFullSpanRewriter.cs
- SimpleExpression.cs
- UnsafeNativeMethods.cs
- webclient.cs
- SelectedPathEditor.cs
- MenuTracker.cs
- TdsEnums.cs
- EncoderNLS.cs
- LicenseContext.cs
- IList.cs
- JpegBitmapDecoder.cs
- AppModelKnownContentFactory.cs
- PropertyItemInternal.cs
- DropShadowBitmapEffect.cs
- sqlmetadatafactory.cs
- XmlSchemaSet.cs
- securitycriticaldataformultiplegetandset.cs
- Pair.cs
- DecodeHelper.cs
- OracleSqlParser.cs
- RtType.cs
- GetWorkflowTree.cs
- SaveFileDialog.cs
- TextBoxAutoCompleteSourceConverter.cs
- ContextMenuAutomationPeer.cs
- IntegerFacetDescriptionElement.cs
- BasicKeyConstraint.cs
- TiffBitmapEncoder.cs
- TrustManager.cs
- TextTreeNode.cs
- TreeNodeStyleCollection.cs
- XmlCountingReader.cs
- Margins.cs
- ListGeneralPage.cs
- Span.cs
- ShapingEngine.cs
- WebServiceAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- SimpleRecyclingCache.cs
- FormViewPageEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DrawingGroupDrawingContext.cs
- ToolStripDropDown.cs
- RegexGroupCollection.cs
- OdbcConnectionFactory.cs
- CachedFontFamily.cs
- SortExpressionBuilder.cs
- XsdBuilder.cs
- DesignerDataStoredProcedure.cs
- ContextMenuService.cs
- ConstraintCollection.cs
- DataViewListener.cs
- VirtualPathUtility.cs
- PixelFormats.cs
- ContextMenu.cs
- CharEnumerator.cs
- GenerateHelper.cs
- RowToFieldTransformer.cs
- SafeNativeMethods.cs
- SqlHelper.cs
- SrgsToken.cs
- PromptStyle.cs
- HttpCookiesSection.cs