Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / PageStatePersister.cs / 2 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityElementBase.cs
- TreeNodeCollection.cs
- UpdateTracker.cs
- HtmlWindowCollection.cs
- FontCacheUtil.cs
- FormViewUpdateEventArgs.cs
- COAUTHINFO.cs
- OpCodes.cs
- CriticalExceptions.cs
- CredentialSelector.cs
- UnionCodeGroup.cs
- DataAccessor.cs
- Blend.cs
- TextReader.cs
- CompilerWrapper.cs
- XmlSchemaValidationException.cs
- DataGrid.cs
- ToolStripContentPanelDesigner.cs
- ClientConvert.cs
- Token.cs
- UdpMessageProperty.cs
- RangeBase.cs
- HttpPostedFile.cs
- RedistVersionInfo.cs
- DbException.cs
- BlurBitmapEffect.cs
- sitestring.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ClientSettingsStore.cs
- MLangCodePageEncoding.cs
- VectorKeyFrameCollection.cs
- UndirectedGraph.cs
- LayoutEditorPart.cs
- Misc.cs
- DispatcherExceptionFilterEventArgs.cs
- JournalEntryStack.cs
- SetStateDesigner.cs
- DataTrigger.cs
- WebServiceErrorEvent.cs
- returneventsaver.cs
- Panel.cs
- ChildTable.cs
- OleDbSchemaGuid.cs
- LineVisual.cs
- SqlDataSourceCache.cs
- IteratorDescriptor.cs
- InputChannelAcceptor.cs
- DES.cs
- ExpressionNode.cs
- _BufferOffsetSize.cs
- Parser.cs
- FixedDSBuilder.cs
- ConfigurationElementCollection.cs
- Scene3D.cs
- ListBase.cs
- ExpressionConverter.cs
- DrawListViewSubItemEventArgs.cs
- ProfileSettingsCollection.cs
- CallbackException.cs
- FilterableAttribute.cs
- LayoutUtils.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- DriveNotFoundException.cs
- BamlTreeMap.cs
- ColorContextHelper.cs
- AuthenticationServiceManager.cs
- ServiceObjectContainer.cs
- METAHEADER.cs
- ZipIORawDataFileBlock.cs
- QilBinary.cs
- ExtensionQuery.cs
- AnimationClock.cs
- KeyFrames.cs
- ComponentSerializationService.cs
- ListViewDeletedEventArgs.cs
- ProcessThreadCollection.cs
- smtpconnection.cs
- DataBindingsDialog.cs
- DataExpression.cs
- StringSorter.cs
- SparseMemoryStream.cs
- ArithmeticException.cs
- FieldAccessException.cs
- RangeBaseAutomationPeer.cs
- HMACRIPEMD160.cs
- XmlQueryOutput.cs
- GridViewUpdateEventArgs.cs
- InstanceDataCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- SymmetricKeyWrap.cs
- EndPoint.cs
- WorkflowDebuggerSteppingAttribute.cs
- ListViewGroup.cs
- Substitution.cs
- EllipseGeometry.cs
- SignatureDescription.cs
- CompileXomlTask.cs
- FilteredXmlReader.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ArgumentsParser.cs