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
- ConfigXmlText.cs
- XsltContext.cs
- SemaphoreSecurity.cs
- ActiveXMessageFormatter.cs
- Trigger.cs
- WebPartConnectionsCancelVerb.cs
- SizeAnimationBase.cs
- DecoderFallback.cs
- URLAttribute.cs
- SoapFormatter.cs
- BamlStream.cs
- MimeXmlImporter.cs
- WindowsSecurityToken.cs
- SecureStringHasher.cs
- ParamArrayAttribute.cs
- AmbientLight.cs
- UshortList2.cs
- HierarchicalDataBoundControlAdapter.cs
- EntityDataSourceChangingEventArgs.cs
- DesignerVerb.cs
- LessThan.cs
- ReferencedCollectionType.cs
- ButtonFlatAdapter.cs
- ProxyFragment.cs
- SponsorHelper.cs
- TransformerConfigurationWizardBase.cs
- PolicyUnit.cs
- WebHttpBindingCollectionElement.cs
- VisualStyleInformation.cs
- ProcessHost.cs
- JumpList.cs
- GB18030Encoding.cs
- WpfWebRequestHelper.cs
- FileRegion.cs
- CryptoKeySecurity.cs
- Attribute.cs
- Row.cs
- ListMarkerSourceInfo.cs
- InternalBufferOverflowException.cs
- DataSourceViewSchemaConverter.cs
- Timer.cs
- CodePageUtils.cs
- ErrorWebPart.cs
- ValueChangedEventManager.cs
- ActivityBindForm.Designer.cs
- ActiveXSite.cs
- Rotation3D.cs
- Process.cs
- SizeAnimationBase.cs
- UdpReplyToBehavior.cs
- RepeatBehavior.cs
- ReflectionUtil.cs
- FormsAuthenticationEventArgs.cs
- ParameterCollection.cs
- StaticExtensionConverter.cs
- XPathCompileException.cs
- StorageConditionPropertyMapping.cs
- DataPager.cs
- PageThemeBuildProvider.cs
- ObjectDataSourceFilteringEventArgs.cs
- GenericAuthenticationEventArgs.cs
- Int16Animation.cs
- OleDbCommandBuilder.cs
- BrowserCapabilitiesCodeGenerator.cs
- InlineCollection.cs
- OleAutBinder.cs
- Margins.cs
- WebPartVerb.cs
- DataSet.cs
- HostingEnvironment.cs
- oledbconnectionstring.cs
- NavigationPropertyEmitter.cs
- OptionUsage.cs
- HostedBindingBehavior.cs
- DesignOnlyAttribute.cs
- HtmlInputFile.cs
- EmptyReadOnlyDictionaryInternal.cs
- ObjectStateManager.cs
- HtmlEmptyTagControlBuilder.cs
- RootBuilder.cs
- xdrvalidator.cs
- SequenceNumber.cs
- HandlerBase.cs
- ObjectQuery_EntitySqlExtensions.cs
- XXXOnTypeBuilderInstantiation.cs
- Visitors.cs
- CorrelationManager.cs
- DES.cs
- XmlElement.cs
- DrawingDrawingContext.cs
- SqlTrackingWorkflowInstance.cs
- UrlMappingsModule.cs
- TemplateNameScope.cs
- VisualStyleInformation.cs
- DataGridRelationshipRow.cs
- ping.cs
- Int64Converter.cs
- SiteMapDataSource.cs
- DrawingImage.cs
- _LazyAsyncResult.cs