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
- DataList.cs
- SoapReflectionImporter.cs
- CustomErrorCollection.cs
- TextContainerChangeEventArgs.cs
- FlowDocumentPage.cs
- OptimizerPatterns.cs
- MemberHolder.cs
- ConfigurationHandlersInstallComponent.cs
- DesignerRegionCollection.cs
- SpellerError.cs
- GradientStop.cs
- DBCSCodePageEncoding.cs
- AnnotationAuthorChangedEventArgs.cs
- DefaultWorkflowLoaderService.cs
- glyphs.cs
- TraceHwndHost.cs
- RtfControls.cs
- BlurBitmapEffect.cs
- TdsParserSafeHandles.cs
- WebPartCancelEventArgs.cs
- Stack.cs
- HyperLinkStyle.cs
- WindowsScrollBarBits.cs
- CodeTypeReference.cs
- XmlUrlResolver.cs
- InkCanvasFeedbackAdorner.cs
- TypeSystem.cs
- TimeSpanConverter.cs
- DataViewListener.cs
- UpdatePanelTrigger.cs
- EventProvider.cs
- AudioFileOut.cs
- XmlSerializer.cs
- PropertyNames.cs
- ViewCellRelation.cs
- XmlEventCache.cs
- PackageStore.cs
- ByteStack.cs
- EnumMember.cs
- CharacterHit.cs
- CodeMethodReturnStatement.cs
- GB18030Encoding.cs
- MessageBox.cs
- BlurEffect.cs
- FrameworkPropertyMetadata.cs
- ModelPropertyImpl.cs
- TextWriter.cs
- ContentPresenter.cs
- WindowsListView.cs
- NotSupportedException.cs
- PageCatalogPart.cs
- ColorDialog.cs
- Crc32.cs
- ContextMarshalException.cs
- XmlWellformedWriter.cs
- HTTPRemotingHandler.cs
- FrameworkContextData.cs
- DataGridCell.cs
- Delegate.cs
- DetailsViewUpdateEventArgs.cs
- LinkLabel.cs
- _SSPIWrapper.cs
- HtmlImage.cs
- EntityDataSourceDataSelection.cs
- TemporaryBitmapFile.cs
- TopClause.cs
- WebBrowserNavigatingEventHandler.cs
- PermissionListSet.cs
- DbMetaDataCollectionNames.cs
- HMACSHA1.cs
- SqlTopReducer.cs
- FontSizeConverter.cs
- WindowsRichEdit.cs
- PageContentCollection.cs
- Themes.cs
- BooleanAnimationBase.cs
- BaseDataList.cs
- ReadOnlyDictionary.cs
- FileInfo.cs
- SqlTriggerContext.cs
- PenThread.cs
- RegexTree.cs
- SqlParameterCollection.cs
- IssuanceLicense.cs
- SelectionRange.cs
- SaveFileDialog.cs
- QilFactory.cs
- FusionWrap.cs
- DocumentationServerProtocol.cs
- SecurityContextKeyIdentifierClause.cs
- HasRunnableWorkflowEvent.cs
- SelectionPattern.cs
- BigInt.cs
- EditorZone.cs
- ExceptionHandlers.cs
- GeneralTransform.cs
- SqlWebEventProvider.cs
- TrackingMemoryStreamFactory.cs
- Membership.cs
- ListViewDeleteEventArgs.cs