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
- Privilege.cs
- ComponentCollection.cs
- EdmTypeAttribute.cs
- GlyphTypeface.cs
- PerformanceCountersElement.cs
- ManagementPath.cs
- BooleanExpr.cs
- DataGridViewDesigner.cs
- SqlPersonalizationProvider.cs
- SystemWebSectionGroup.cs
- _NegotiateClient.cs
- SamlAuthorizationDecisionStatement.cs
- DataTableNewRowEvent.cs
- assemblycache.cs
- ButtonColumn.cs
- BitmapInitialize.cs
- ColumnMapTranslator.cs
- FlowLayout.cs
- PrintDialog.cs
- LockedAssemblyCache.cs
- SaveLedgerEntryRequest.cs
- TracedNativeMethods.cs
- MetadataCache.cs
- RoleService.cs
- DataGrid.cs
- DiscriminatorMap.cs
- XamlStackWriter.cs
- ListBindingConverter.cs
- TreeBuilderBamlTranslator.cs
- NamedPipeTransportBindingElement.cs
- TreeNodeCollection.cs
- BinaryWriter.cs
- MetadataArtifactLoaderCompositeResource.cs
- Ref.cs
- MessageQueue.cs
- HandledMouseEvent.cs
- ProcessingInstructionAction.cs
- TrackingProfileManager.cs
- ObjectDesignerDataSourceView.cs
- SqlExpressionNullability.cs
- CodeDomConfigurationHandler.cs
- BasicCellRelation.cs
- _UriSyntax.cs
- RelationalExpressions.cs
- ErrorHandler.cs
- XmlNodeChangedEventArgs.cs
- DataColumn.cs
- HTMLTextWriter.cs
- PingOptions.cs
- ProjectedSlot.cs
- ExpandableObjectConverter.cs
- UIElement.cs
- ValidatedMobileControlConverter.cs
- Version.cs
- ReadingWritingEntityEventArgs.cs
- SoapReflectionImporter.cs
- DocumentSequenceHighlightLayer.cs
- InkCanvasAutomationPeer.cs
- Int32AnimationBase.cs
- XmlSchemaSimpleContent.cs
- TableChangeProcessor.cs
- TableItemPattern.cs
- ProvidersHelper.cs
- VirtualPathUtility.cs
- FormsAuthenticationModule.cs
- FixedNode.cs
- Int16Storage.cs
- SchemaImporterExtensionsSection.cs
- BitmapSource.cs
- FormatException.cs
- MenuItemStyleCollection.cs
- SecurityResources.cs
- TabControlAutomationPeer.cs
- ResXBuildProvider.cs
- SHA512Managed.cs
- InkCanvasSelectionAdorner.cs
- LoginView.cs
- CompositeTypefaceMetrics.cs
- OdbcRowUpdatingEvent.cs
- Compiler.cs
- CalendarItem.cs
- NamedPipeProcessProtocolHandler.cs
- UnmanagedBitmapWrapper.cs
- Control.cs
- TypeBuilder.cs
- CustomTrackingRecord.cs
- PieceNameHelper.cs
- DictionaryEntry.cs
- CatalogZoneBase.cs
- QilReference.cs
- UpdateExpressionVisitor.cs
- FixedSOMTableCell.cs
- CacheEntry.cs
- TextCompositionEventArgs.cs
- iisPickupDirectory.cs
- ChannelEndpointElement.cs
- SynchronizationFilter.cs
- DynamicFilterExpression.cs
- Hex.cs
- recordstatescratchpad.cs