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
- followingsibling.cs
- AssemblyAssociatedContentFileAttribute.cs
- GlyphingCache.cs
- AttributeUsageAttribute.cs
- InkPresenter.cs
- MachineKeyConverter.cs
- InputMethodStateChangeEventArgs.cs
- JsonReaderWriterFactory.cs
- ApplyHostConfigurationBehavior.cs
- Parser.cs
- BinarySecretKeyIdentifierClause.cs
- ListDataBindEventArgs.cs
- ReadOnlyCollection.cs
- GradientPanel.cs
- ETagAttribute.cs
- OleDbDataAdapter.cs
- CalendarItem.cs
- HttpContextWrapper.cs
- _KerberosClient.cs
- SmtpAuthenticationManager.cs
- StringPropertyBuilder.cs
- TraceContextEventArgs.cs
- DelimitedListTraceListener.cs
- X509CertificateTrustedIssuerElementCollection.cs
- StylusButton.cs
- Drawing.cs
- DelegatingHeader.cs
- processwaithandle.cs
- SecUtil.cs
- UniqueEventHelper.cs
- GiveFeedbackEventArgs.cs
- PageWrapper.cs
- OutputWindow.cs
- TemplatePropertyEntry.cs
- Pens.cs
- OleDbConnection.cs
- webclient.cs
- Knowncolors.cs
- MultipartContentParser.cs
- TaskFormBase.cs
- XmlDocumentSurrogate.cs
- MetadataItem_Static.cs
- AssociationTypeEmitter.cs
- SecurityTokenAttachmentMode.cs
- DisableDpiAwarenessAttribute.cs
- TracedNativeMethods.cs
- ValidationError.cs
- AlignmentXValidation.cs
- lengthconverter.cs
- SubqueryRules.cs
- SqlServices.cs
- DoubleAnimationBase.cs
- RuleSettingsCollection.cs
- DataGridColumnsPage.cs
- PointLightBase.cs
- UrlAuthFailedErrorFormatter.cs
- DefaultConfirmation.cs
- HostingPreferredMapPath.cs
- ListenerSingletonConnectionReader.cs
- TemplateBindingExtension.cs
- TraceContextRecord.cs
- BinaryReader.cs
- WindowsListViewScroll.cs
- PathTooLongException.cs
- SafeNativeMethods.cs
- Util.cs
- XmlWrappingReader.cs
- SHA512Managed.cs
- TextEncodedRawTextWriter.cs
- ReaderWriterLock.cs
- _KerberosClient.cs
- BufferedWebEventProvider.cs
- LinkedList.cs
- ContractMapping.cs
- Rect3DConverter.cs
- mediaeventargs.cs
- ResourceDefaultValueAttribute.cs
- RtfToXamlLexer.cs
- DragEvent.cs
- XmlValueConverter.cs
- RemoveStoryboard.cs
- DispatcherExceptionEventArgs.cs
- TextMarkerSource.cs
- RecordBuilder.cs
- WebServiceReceive.cs
- CompilerCollection.cs
- ProcessModelSection.cs
- securitycriticaldataClass.cs
- EntitySqlException.cs
- MenuCommandService.cs
- InternalsVisibleToAttribute.cs
- XmlDataSourceDesigner.cs
- HandlerBase.cs
- XmlDesignerDataSourceView.cs
- SimplePropertyEntry.cs
- EventSourceCreationData.cs
- HtmlHistory.cs
- Point3DCollectionConverter.cs
- LinkLabelLinkClickedEvent.cs
- AdministrationHelpers.cs