Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / ErrorFormatterPage.cs / 1 / ErrorFormatterPage.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * This is a page class that is used for adaptive error formatting for mobile * devices. * * NOTE: We explicitly override the state management methods because if the * normal page class is used, an exception is thrown for mobile devices. * For example, WmlPageAdapter uses SessionPageStatePersister * for persisting view state. SessionPageStatePersister requires * Context.Session to be available. Otherwise, it would throw in the * constructor. However, when an error occurred, Context.Session is * removed by SessionStateModule before the error is being formatted and * rendered. Hence the methods are overridden below and ignored to avoid * the exception since there is no need to persist any view state for the * adaptive error page which is created dynamically during error handling. * * Copyright (c) 2003 Microsoft Corporation */ namespace System.Web.UI { internal sealed class ErrorFormatterPage: Page { protected internal override void SavePageStateToPersistenceMedium(Object viewState) { // Override and ignore. No need to save view state for this page. } protected internal override Object LoadPageStateFromPersistenceMedium() { // Override and ignore. No view state to load for this page. return null; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputProcessorProfilesLoader.cs
- ProxyHelper.cs
- CodeDomSerializationProvider.cs
- AncillaryOps.cs
- DataSourceBooleanViewSchemaConverter.cs
- ToolStripSplitButton.cs
- ExpressionBinding.cs
- XpsImage.cs
- CompiledQueryCacheEntry.cs
- OraclePermissionAttribute.cs
- DelayedRegex.cs
- SchemaCompiler.cs
- FixedPageProcessor.cs
- DataGridCell.cs
- COM2TypeInfoProcessor.cs
- DataRelationPropertyDescriptor.cs
- ListViewItemEventArgs.cs
- CharStorage.cs
- HttpHeaderCollection.cs
- GlyphTypeface.cs
- WindowsToolbarAsMenu.cs
- MethodSignatureGenerator.cs
- UniqueIdentifierService.cs
- ObjectViewFactory.cs
- Int32CAMarshaler.cs
- DataSysAttribute.cs
- BaseTemplateBuildProvider.cs
- LeaseManager.cs
- HMACMD5.cs
- UniformGrid.cs
- UnorderedHashRepartitionStream.cs
- DataServiceBehavior.cs
- versioninfo.cs
- ArithmeticException.cs
- CodePageUtils.cs
- DoubleCollectionConverter.cs
- LOSFormatter.cs
- PackageFilter.cs
- ButtonChrome.cs
- TypeCollectionDesigner.xaml.cs
- WebPartConnectionsConfigureVerb.cs
- HtmlEncodedRawTextWriter.cs
- XmlSchemaValidator.cs
- TagNameToTypeMapper.cs
- ModifiableIteratorCollection.cs
- IDReferencePropertyAttribute.cs
- ConfigurationElementProperty.cs
- RegistryDataKey.cs
- CachedFontFamily.cs
- BackStopAuthenticationModule.cs
- CursorConverter.cs
- LocatorManager.cs
- TrustLevelCollection.cs
- StreamInfo.cs
- PublisherIdentityPermission.cs
- InputBuffer.cs
- Facet.cs
- OdbcConnectionFactory.cs
- XmlDataLoader.cs
- ExeConfigurationFileMap.cs
- XpsFilter.cs
- _NTAuthentication.cs
- SystemInformation.cs
- ImageKeyConverter.cs
- BrowserCapabilitiesCompiler.cs
- SqlMetaData.cs
- LassoSelectionBehavior.cs
- RegexFCD.cs
- DataGridViewComboBoxColumn.cs
- ThreadPool.cs
- ToolStripButton.cs
- SqlStream.cs
- tibetanshape.cs
- Buffer.cs
- ObjectStateEntryDbDataRecord.cs
- XmlArrayAttribute.cs
- BamlLocalizabilityResolver.cs
- NavigatorOutput.cs
- NeutralResourcesLanguageAttribute.cs
- FileClassifier.cs
- DataKey.cs
- CapabilitiesPattern.cs
- SelectionEditor.cs
- HitTestParameters3D.cs
- _DisconnectOverlappedAsyncResult.cs
- TextStore.cs
- Literal.cs
- DataGridViewCellLinkedList.cs
- ListViewItem.cs
- StorageFunctionMapping.cs
- FunctionCommandText.cs
- Baml2006ReaderFrame.cs
- PagesChangedEventArgs.cs
- XmlDeclaration.cs
- XmlElementAttributes.cs
- TypeViewSchema.cs
- SystemIPv4InterfaceProperties.cs
- basevalidator.cs
- DesignerVerbToolStripMenuItem.cs
- BufferCache.cs