Code:
/ DotNET / DotNET / 8.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
- namescope.cs
- ErrorBehavior.cs
- SerializationInfo.cs
- TableItemPattern.cs
- ConsoleCancelEventArgs.cs
- ElementAction.cs
- AsyncOperation.cs
- Drawing.cs
- VerificationException.cs
- TreeView.cs
- PathGeometry.cs
- ExpandCollapseProviderWrapper.cs
- String.cs
- List.cs
- OracleEncoding.cs
- ObjectNavigationPropertyMapping.cs
- TextTreeFixupNode.cs
- DbgUtil.cs
- SizeAnimationUsingKeyFrames.cs
- brushes.cs
- SourceFileBuildProvider.cs
- CapiHashAlgorithm.cs
- XmlRootAttribute.cs
- DataGridViewTextBoxCell.cs
- Models.cs
- ValidatedMobileControlConverter.cs
- PeerNameRegistration.cs
- PermissionListSet.cs
- OutputCacheSettingsSection.cs
- Serialization.cs
- TableRowCollection.cs
- Utils.cs
- DependencyPropertyAttribute.cs
- lengthconverter.cs
- WorkflowInstanceContextProvider.cs
- PlanCompiler.cs
- BitmapEffectGroup.cs
- BulletChrome.cs
- Helper.cs
- CacheRequest.cs
- SHA1Managed.cs
- TransformCollection.cs
- PersonalizablePropertyEntry.cs
- XmlSchemaObjectTable.cs
- ComplexBindingPropertiesAttribute.cs
- XPathSelectionIterator.cs
- XdrBuilder.cs
- PageParser.cs
- RelationshipEndCollection.cs
- SoapFault.cs
- PersonalizationDictionary.cs
- _ProxyRegBlob.cs
- LinearGradientBrush.cs
- CssClassPropertyAttribute.cs
- PropertyValueUIItem.cs
- Help.cs
- SessionViewState.cs
- VBIdentifierTrimConverter.cs
- SharedStatics.cs
- CodeArgumentReferenceExpression.cs
- Attributes.cs
- MinimizableAttributeTypeConverter.cs
- MembershipUser.cs
- UnknownBitmapEncoder.cs
- Enlistment.cs
- DataBindingCollection.cs
- PathData.cs
- SerializerProvider.cs
- DockProviderWrapper.cs
- ThreadExceptionEvent.cs
- DocumentPageView.cs
- DropDownList.cs
- AstNode.cs
- TileModeValidation.cs
- CodeTypeDeclaration.cs
- InternalConfigSettingsFactory.cs
- SelectionItemPattern.cs
- XpsS0ValidatingLoader.cs
- PageAction.cs
- SelectionItemPattern.cs
- coordinator.cs
- ElementUtil.cs
- ResourceManager.cs
- Stack.cs
- Win32Exception.cs
- ExtendedPropertiesHandler.cs
- DES.cs
- FormatException.cs
- GPPOINT.cs
- LogicalExpr.cs
- _IPv6Address.cs
- DbConnectionHelper.cs
- DPAPIProtectedConfigurationProvider.cs
- DataServiceProviderWrapper.cs
- TimeStampChecker.cs
- SafeNativeMethodsOther.cs
- SystemIPv4InterfaceProperties.cs
- cookiecollection.cs
- SqlUDTStorage.cs
- assemblycache.cs