Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- DataListCommandEventArgs.cs
- ServiceAuthorizationBehavior.cs
- SynchronousReceiveElement.cs
- FixUpCollection.cs
- RC2CryptoServiceProvider.cs
- MobileRedirect.cs
- TraceLevelStore.cs
- CultureTable.cs
- DataGridToolTip.cs
- CultureSpecificCharacterBufferRange.cs
- ServiceReference.cs
- RequestCachePolicy.cs
- MessageDescription.cs
- BStrWrapper.cs
- IndexedSelectQueryOperator.cs
- RC2.cs
- DbReferenceCollection.cs
- ForEachAction.cs
- XmlSchemaChoice.cs
- DataGridViewComboBoxColumn.cs
- XmlSchemaExternal.cs
- ServiceDescription.cs
- DataGridColumnCollection.cs
- StreamGeometry.cs
- XPathNode.cs
- EllipticalNodeOperations.cs
- ReverseComparer.cs
- BitmapDownload.cs
- XmlQueryTypeFactory.cs
- JoinSymbol.cs
- FocusChangedEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- RelationshipConstraintValidator.cs
- ByteKeyFrameCollection.cs
- CodeEventReferenceExpression.cs
- DrawToolTipEventArgs.cs
- CompensationDesigner.cs
- DataServiceConfiguration.cs
- ServiceChannelFactory.cs
- SystemIPAddressInformation.cs
- SectionRecord.cs
- OpenTypeLayoutCache.cs
- ListViewUpdatedEventArgs.cs
- NavigationExpr.cs
- XXXInfos.cs
- LineMetrics.cs
- ExtendedPropertyCollection.cs
- RsaSecurityTokenAuthenticator.cs
- CommonProperties.cs
- TextAutomationPeer.cs
- XsdCachingReader.cs
- DataView.cs
- XmlValidatingReader.cs
- MSG.cs
- ListViewItem.cs
- TextTabProperties.cs
- thaishape.cs
- SolidColorBrush.cs
- CounterSetInstanceCounterDataSet.cs
- HierarchicalDataSourceControl.cs
- CharEnumerator.cs
- ToolStripItemRenderEventArgs.cs
- Ref.cs
- CodeLinePragma.cs
- SequenceNumber.cs
- MobileUITypeEditor.cs
- DictionarySurrogate.cs
- HttpPostLocalhostServerProtocol.cs
- XmlSchemaAttributeGroupRef.cs
- AnimatedTypeHelpers.cs
- LinkLabelLinkClickedEvent.cs
- XamlTypeMapper.cs
- ButtonRenderer.cs
- PnrpPeerResolverBindingElement.cs
- linebase.cs
- UIElement.cs
- HyperLinkColumn.cs
- SqlProviderServices.cs
- XmlUtil.cs
- DataControlLinkButton.cs
- RuleRef.cs
- TailPinnedEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- SQLRoleProvider.cs
- GeometryHitTestResult.cs
- IsolatedStoragePermission.cs
- WebPartConnectionsCancelEventArgs.cs
- ByteStreamGeometryContext.cs
- DataGridViewBindingCompleteEventArgs.cs
- SocketElement.cs
- Localizer.cs
- DllNotFoundException.cs
- HttpUnhandledOperationInvoker.cs
- recordstate.cs
- XhtmlTextWriter.cs
- MultiTargetingUtil.cs
- WindowsSidIdentity.cs
- NonBatchDirectoryCompiler.cs
- NullableIntSumAggregationOperator.cs
- Automation.cs