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
- StylusPointCollection.cs
- CodeTypeParameterCollection.cs
- SelectionRange.cs
- MsmqOutputSessionChannel.cs
- XsdDuration.cs
- counter.cs
- SourceSwitch.cs
- UserInitiatedRoutedEventPermission.cs
- Geometry.cs
- ForAllOperator.cs
- TreeBuilderBamlTranslator.cs
- Part.cs
- Label.cs
- ThreadStaticAttribute.cs
- VirtualPathProvider.cs
- InstanceContextMode.cs
- PopupEventArgs.cs
- Timer.cs
- TraceEventCache.cs
- PackWebRequest.cs
- ProviderCollection.cs
- CodeTypeReferenceCollection.cs
- RelationshipDetailsRow.cs
- PageBuildProvider.cs
- RegexParser.cs
- ChildTable.cs
- QueryRewriter.cs
- DataRowChangeEvent.cs
- SystemResourceHost.cs
- TypedColumnHandler.cs
- Normalization.cs
- EdgeModeValidation.cs
- OleDbInfoMessageEvent.cs
- AstTree.cs
- UnionCodeGroup.cs
- PageThemeBuildProvider.cs
- HTTPNotFoundHandler.cs
- EntitySet.cs
- SchemaCollectionCompiler.cs
- ScrollEvent.cs
- VectorKeyFrameCollection.cs
- ArrangedElementCollection.cs
- CroppedBitmap.cs
- Control.cs
- PropertyChangedEventArgs.cs
- DataControlExtensions.cs
- SqlDelegatedTransaction.cs
- TrackingMemoryStreamFactory.cs
- ToolStripProgressBar.cs
- TextElementAutomationPeer.cs
- UnknownBitmapEncoder.cs
- XslNumber.cs
- DecimalConstantAttribute.cs
- SplashScreen.cs
- WebPartDisplayModeCollection.cs
- ListChangedEventArgs.cs
- ProfileProvider.cs
- HtmlInputReset.cs
- BufferedOutputStream.cs
- SqlBooleanizer.cs
- BulletedList.cs
- GlyphsSerializer.cs
- ScaleTransform.cs
- propertytag.cs
- wgx_commands.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ProxyManager.cs
- QueryMatcher.cs
- SpeakCompletedEventArgs.cs
- MetaDataInfo.cs
- ZipFileInfo.cs
- _NegoStream.cs
- MarkupCompilePass2.cs
- ImportCatalogPart.cs
- RadialGradientBrush.cs
- DirectionalLight.cs
- JsonClassDataContract.cs
- Regex.cs
- CalendarDateChangedEventArgs.cs
- MouseWheelEventArgs.cs
- AppSettingsExpressionBuilder.cs
- StylusSystemGestureEventArgs.cs
- FileDialog_Vista.cs
- TextRangeEdit.cs
- WebPartDisplayModeCollection.cs
- HashLookup.cs
- BaseTemplateParser.cs
- PropertyStore.cs
- PageSetupDialog.cs
- HtmlInputPassword.cs
- MailDefinition.cs
- BehaviorEditorPart.cs
- DataFieldConverter.cs
- URLAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- TableRowCollection.cs
- FileLoadException.cs
- SmtpCommands.cs
- DrawingVisual.cs
- NullableConverter.cs