Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ErrorFormatterPage.cs / 1305376 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventData.cs
- SchemaTypeEmitter.cs
- Policy.cs
- FormsAuthenticationEventArgs.cs
- ConfigurationManagerInternal.cs
- Animatable.cs
- ProfileGroupSettings.cs
- ResourceDisplayNameAttribute.cs
- AuthenticationService.cs
- ContainerControl.cs
- NativeMethodsOther.cs
- TypeBuilder.cs
- sqlcontext.cs
- BitStream.cs
- PersistStreamTypeWrapper.cs
- TextServicesPropertyRanges.cs
- RegionData.cs
- DNS.cs
- EventEntry.cs
- CriticalFinalizerObject.cs
- filewebrequest.cs
- SqlTypesSchemaImporter.cs
- MetadataItem_Static.cs
- XslCompiledTransform.cs
- SoapTypeAttribute.cs
- PropertyEmitterBase.cs
- WSSecureConversationDec2005.cs
- ValueProviderWrapper.cs
- SoapCodeExporter.cs
- TreeViewImageKeyConverter.cs
- SafeBitVector32.cs
- PageCache.cs
- TemplateXamlTreeBuilder.cs
- ListSourceHelper.cs
- FixedSOMElement.cs
- WasHttpHandlersInstallComponent.cs
- AutoSizeToolBoxItem.cs
- ExpressionHelper.cs
- TypedDataSetSchemaImporterExtension.cs
- BitmapEffectrendercontext.cs
- XPathAxisIterator.cs
- DispatcherObject.cs
- _NegotiateClient.cs
- WS2007HttpBinding.cs
- ResourceProviderFactory.cs
- UnsafeNativeMethods.cs
- DataGridCellClipboardEventArgs.cs
- TrackingMemoryStreamFactory.cs
- ServiceChannelProxy.cs
- StorageTypeMapping.cs
- DataBinder.cs
- DataSourceProvider.cs
- ScriptResourceInfo.cs
- HttpServerVarsCollection.cs
- SchemaName.cs
- AlignmentYValidation.cs
- ObjectPropertyMapping.cs
- Journal.cs
- InstanceData.cs
- IncrementalReadDecoders.cs
- SrgsElement.cs
- DataGridToolTip.cs
- DbBuffer.cs
- NativeActivityFaultContext.cs
- CurrentChangingEventManager.cs
- OracleInfoMessageEventArgs.cs
- PowerModeChangedEventArgs.cs
- SoapConverter.cs
- GroupBoxRenderer.cs
- BaseResourcesBuildProvider.cs
- AttributeAction.cs
- StringPropertyBuilder.cs
- ExplicitDiscriminatorMap.cs
- Normalization.cs
- ThreadExceptionDialog.cs
- Timer.cs
- ErrorStyle.cs
- RIPEMD160Managed.cs
- Repeater.cs
- ValidationError.cs
- Point3DCollectionConverter.cs
- SortedList.cs
- ExpressionEvaluator.cs
- securitycriticaldataformultiplegetandset.cs
- OutputScope.cs
- AvtEvent.cs
- DeferredReference.cs
- TagElement.cs
- SelectionUIHandler.cs
- DataBoundControl.cs
- PrintDocument.cs
- ModuleElement.cs
- EventPropertyMap.cs
- EdgeProfileValidation.cs
- SourceSwitch.cs
- TableChangeProcessor.cs
- TrackingServices.cs
- ObjectQueryState.cs
- FrameSecurityDescriptor.cs
- EndpointNotFoundException.cs